fix: test
This commit is contained in:
		
							parent
							
								
									5e603b5a52
								
							
						
					
					
						commit
						f69b062b4f
					
				@ -57,6 +57,7 @@ interface Resource {
 | 
				
			|||||||
export class MockServer extends Application {
 | 
					export class MockServer extends Application {
 | 
				
			||||||
  async loadAndInstall(options: any = {}) {
 | 
					  async loadAndInstall(options: any = {}) {
 | 
				
			||||||
    await this.load({ method: 'install' });
 | 
					    await this.load({ method: 'install' });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    await this.install({
 | 
					    await this.install({
 | 
				
			||||||
      ...options,
 | 
					      ...options,
 | 
				
			||||||
      sync: {
 | 
					      sync: {
 | 
				
			||||||
 | 
				
			|||||||
@ -9,6 +9,7 @@ export async function createApp(options = {}) {
 | 
				
			|||||||
    ...options,
 | 
					    ...options,
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  await app.db.sync({});
 | 
				
			||||||
  app.plugin(PluginErrorHandler, { name: 'error-handler' });
 | 
					  app.plugin(PluginErrorHandler, { name: 'error-handler' });
 | 
				
			||||||
  app.plugin(Plugin, { name: 'collection-manager' });
 | 
					  app.plugin(Plugin, { name: 'collection-manager' });
 | 
				
			||||||
  app.plugin(PluginUiSchema, { name: 'ui-schema-storage' });
 | 
					  app.plugin(PluginUiSchema, { name: 'ui-schema-storage' });
 | 
				
			||||||
 | 
				
			|||||||
@ -359,7 +359,6 @@ pgOnly()('Inherited Collection', () => {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    const studentCollection = await db.getCollection('students');
 | 
					    const studentCollection = await db.getCollection('students');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    console.log(studentCollection.fields);
 | 
					 | 
				
			||||||
    await studentCollection.repository.create({
 | 
					    await studentCollection.repository.create({
 | 
				
			||||||
      values: {
 | 
					      values: {
 | 
				
			||||||
        name: 'foo',
 | 
					        name: 'foo',
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user