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