Skip to content

Commit

Permalink
Create test code for app module
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejkang committed Aug 11, 2021
1 parent ed9fdb8 commit 558d06f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/app.module.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Test } from '@nestjs/testing';
import { AppModule } from './app.module';

describe('AppModule', () => {
let appModule: AppModule;

beforeEach(async () => {
const module = await Test.createTestingModule({
imports: [AppModule],
}).compile();

appModule = module.get<AppModule>(AppModule);
});

it('should the correct value', () => {
expect(appModule).toEqual(appModule);
});
});

0 comments on commit 558d06f

Please sign in to comment.