Skip to content

Commit

Permalink
added capp.controller.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
DarrenDsouza7273 authored and Savio629 committed Jul 6, 2024
1 parent 43afc36 commit 30e4c52
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions sample/07-geopip-blocking/src/app.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Test, TestingModule } from '@nestjs/testing';
import { AppController } from './app.controller';
import { AppService } from './app.service';

describe('AppController', () => {
let appController: AppController;

beforeEach(async () => {
const app: TestingModule = await Test.createTestingModule({
controllers: [AppController],
providers: [AppService],
}).compile();

appController = app.get<AppController>(AppController);
});

describe('root', () => {
it('should return "Hello World!"', () => {
expect(appController.getHello()).toBe('Hello World!');
});
});
});

0 comments on commit 30e4c52

Please sign in to comment.