diff --git a/sample/07-geopip-blocking/src/app.controller.spec.ts b/sample/07-geopip-blocking/src/app.controller.spec.ts new file mode 100644 index 0000000..28300e5 --- /dev/null +++ b/sample/07-geopip-blocking/src/app.controller.spec.ts @@ -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); + }); + + describe('root', () => { + it('should return "Hello World!"', () => { + expect(appController.getHello()).toBe('Hello World!'); + }); + }); +}); \ No newline at end of file