Skip to content

Commit

Permalink
doc(samples) minor refactoring from review
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwikern committed Nov 3, 2019
1 parent 6765842 commit 920100d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sample/13-mongo-typeorm/test/photos.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@ describe('Photos (e2e)', () => {
let app: INestApplication;

beforeAll(async () => {
const moduleFixture = await Test.createTestingModule({
const module = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = moduleFixture.createNestApplication();
app = module.createNestApplication();
await app.init();
});

afterAll(async () => {
if (app) {
await app.close();
}
await app.close();
});

it('should return an empty list of photos', async () => {
Expand Down

0 comments on commit 920100d

Please sign in to comment.