File tree Expand file tree Collapse file tree 4 files changed +2
-10
lines changed Expand file tree Collapse file tree 4 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 11import * as request from 'supertest' ;
22import { bootstrapApp , BootstrapSettings } from '../utils/bootstrap' ;
33import { env } from '../../../src/core/env' ;
4- import { synchronizeDatabase , closeDatabase } from '../../integration/utils/database' ;
54
65
76describe ( '/api' , ( ) => {
@@ -12,13 +11,6 @@ describe('/api', () => {
1211
1312 let settings : BootstrapSettings ;
1413 beforeAll ( async ( ) => settings = await bootstrapApp ( ) ) ;
15- beforeAll ( async ( ) => synchronizeDatabase ( settings . connection ) ) ;
16-
17- // -------------------------------------------------------------------------
18- // Tear down
19- // -------------------------------------------------------------------------
20-
21- afterAll ( async ( ) => closeDatabase ( settings . connection ) ) ;
2214
2315 // -------------------------------------------------------------------------
2416 // Test cases
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { getFactory } from './../../../src/lib/seeds/index';
55import { Factory } from './../../../src/lib/seeds/Factory' ;
66import { User } from './../../../src/api/models/User' ;
77import { bootstrapApp , BootstrapSettings } from '../utils/bootstrap' ;
8- import { synchronizeDatabase , closeDatabase } from '../../integration/ utils/database' ;
8+ import { synchronizeDatabase , closeDatabase } from '../../utils/database' ;
99import { fakeAuthenticationForUser } from '../utils/auth' ;
1010
1111
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { Connection } from 'typeorm';
33
44import { Pet } from '../../src/api/models/Pet' ;
55import { PetService } from './../../src/api/services/PetService' ;
6- import { createDatabaseConnection , synchronizeDatabase , closeDatabase } from './utils/database' ;
6+ import { createDatabaseConnection , synchronizeDatabase , closeDatabase } from '.. /utils/database' ;
77
88describe ( 'PetService' , ( ) => {
99
File renamed without changes.
You can’t perform that action at this time.
0 commit comments