aboutsummaryrefslogtreecommitdiff
path: root/src/app.controller.spec.ts
diff options
context:
space:
mode:
authorIndrajith K L2023-08-09 03:17:29 +0530
committerIndrajith K L2023-08-09 03:17:29 +0530
commitda7af92dcbbae9444ce9daf3fd278212d9cea4c7 (patch)
tree0c25dbd2c84e16d0f44844e94f70711e7770cb86 /src/app.controller.spec.ts
downloadJournlr Backend-da7af92dcbbae9444ce9daf3fd278212d9cea4c7.tar.gz
Journlr Backend-da7af92dcbbae9444ce9daf3fd278212d9cea4c7.tar.bz2
Journlr Backend-da7af92dcbbae9444ce9daf3fd278212d9cea4c7.zip
initial commit with sample post urlHEADmaster
Diffstat (limited to 'src/app.controller.spec.ts')
-rw-r--r--src/app.controller.spec.ts22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/app.controller.spec.ts b/src/app.controller.spec.ts
new file mode 100644
index 0000000..d22f389
--- /dev/null
+++ b/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>(AppController);
+ });
+
+ describe('root', () => {
+ it('should return "Hello World!"', () => {
+ expect(appController.getHello()).toBe('Hello World!');
+ });
+ });
+});