Showing
7 changed files
with
0 additions
and
130 deletions
src/app.controller.spec.ts
deleted
100755 → 0
1 | -import { Test, TestingModule } from '@nestjs/testing'; | ||
2 | -import { AppController } from './app.controller'; | ||
3 | -import { AppService } from './app.service'; | ||
4 | - | ||
5 | -describe('AppController', () => { | ||
6 | - let appController: AppController; | ||
7 | - | ||
8 | - beforeEach(async () => { | ||
9 | - const app: TestingModule = await Test.createTestingModule({ | ||
10 | - controllers: [AppController], | ||
11 | - providers: [AppService], | ||
12 | - }).compile(); | ||
13 | - | ||
14 | - appController = app.get<AppController>(AppController); | ||
15 | - }); | ||
16 | - | ||
17 | - describe('root', () => { | ||
18 | - it('should return "Hello World!"', () => { | ||
19 | - expect(appController.getHello()).toBe('Hello World!'); | ||
20 | - }); | ||
21 | - }); | ||
22 | -}); |
src/auth/auth.controller.spec.ts
deleted
100755 → 0
1 | -import { Test, TestingModule } from '@nestjs/testing'; | ||
2 | -import { AuthController } from './auth.controller'; | ||
3 | - | ||
4 | -describe('AuthController', () => { | ||
5 | - let controller: AuthController; | ||
6 | - | ||
7 | - beforeEach(async () => { | ||
8 | - const module: TestingModule = await Test.createTestingModule({ | ||
9 | - controllers: [AuthController], | ||
10 | - }).compile(); | ||
11 | - | ||
12 | - controller = module.get<AuthController>(AuthController); | ||
13 | - }); | ||
14 | - | ||
15 | - it('should be defined', () => { | ||
16 | - expect(controller).toBeDefined(); | ||
17 | - }); | ||
18 | -}); |
src/auth/auth.service.spec.ts
deleted
100755 → 0
1 | -import { Test, TestingModule } from '@nestjs/testing'; | ||
2 | -import { AuthService } from './auth.service'; | ||
3 | - | ||
4 | -describe('AuthService', () => { | ||
5 | - let service: AuthService; | ||
6 | - | ||
7 | - beforeEach(async () => { | ||
8 | - const module: TestingModule = await Test.createTestingModule({ | ||
9 | - providers: [AuthService], | ||
10 | - }).compile(); | ||
11 | - | ||
12 | - service = module.get<AuthService>(AuthService); | ||
13 | - }); | ||
14 | - | ||
15 | - it('should be defined', () => { | ||
16 | - expect(service).toBeDefined(); | ||
17 | - }); | ||
18 | -}); |
src/post/post.controller.spec.ts
deleted
100755 → 0
1 | -import { Test, TestingModule } from '@nestjs/testing'; | ||
2 | -import { PostController } from './post.controller'; | ||
3 | - | ||
4 | -describe('PostController', () => { | ||
5 | - let controller: PostController; | ||
6 | - | ||
7 | - beforeEach(async () => { | ||
8 | - const module: TestingModule = await Test.createTestingModule({ | ||
9 | - controllers: [PostController], | ||
10 | - }).compile(); | ||
11 | - | ||
12 | - controller = module.get<PostController>(PostController); | ||
13 | - }); | ||
14 | - | ||
15 | - it('should be defined', () => { | ||
16 | - expect(controller).toBeDefined(); | ||
17 | - }); | ||
18 | -}); |
src/post/post.service.spec.ts
deleted
100755 → 0
1 | -import { Test, TestingModule } from '@nestjs/testing'; | ||
2 | -import { PostService } from './post.service'; | ||
3 | - | ||
4 | -describe('PostService', () => { | ||
5 | - let service: PostService; | ||
6 | - | ||
7 | - beforeEach(async () => { | ||
8 | - const module: TestingModule = await Test.createTestingModule({ | ||
9 | - providers: [PostService], | ||
10 | - }).compile(); | ||
11 | - | ||
12 | - service = module.get<PostService>(PostService); | ||
13 | - }); | ||
14 | - | ||
15 | - it('should be defined', () => { | ||
16 | - expect(service).toBeDefined(); | ||
17 | - }); | ||
18 | -}); |
src/runner/runner.controller.spec.ts
deleted
100755 → 0
1 | -import { Test, TestingModule } from '@nestjs/testing'; | ||
2 | -import { RunnerController } from './runner.controller'; | ||
3 | - | ||
4 | -describe('RunnerController', () => { | ||
5 | - let controller: RunnerController; | ||
6 | - | ||
7 | - beforeEach(async () => { | ||
8 | - const module: TestingModule = await Test.createTestingModule({ | ||
9 | - controllers: [RunnerController], | ||
10 | - }).compile(); | ||
11 | - | ||
12 | - controller = module.get<RunnerController>(RunnerController); | ||
13 | - }); | ||
14 | - | ||
15 | - it('should be defined', () => { | ||
16 | - expect(controller).toBeDefined(); | ||
17 | - }); | ||
18 | -}); |
src/runner/runner.service.spec.ts
deleted
100755 → 0
1 | -import { Test, TestingModule } from '@nestjs/testing'; | ||
2 | -import { RunnerService } from './runner.service'; | ||
3 | - | ||
4 | -describe('RunnerService', () => { | ||
5 | - let service: RunnerService; | ||
6 | - | ||
7 | - beforeEach(async () => { | ||
8 | - const module: TestingModule = await Test.createTestingModule({ | ||
9 | - providers: [RunnerService], | ||
10 | - }).compile(); | ||
11 | - | ||
12 | - service = module.get<RunnerService>(RunnerService); | ||
13 | - }); | ||
14 | - | ||
15 | - it('should be defined', () => { | ||
16 | - expect(service).toBeDefined(); | ||
17 | - }); | ||
18 | -}); |
-
Please register or login to post a comment