chore: format
This commit is contained in:
@@ -2,7 +2,7 @@ import { Module } from '@nestjs/common'
|
||||
import { AppController } from './app.controller'
|
||||
import { AppService } from './app.service'
|
||||
import { InitModule } from './modules/init/init.module'
|
||||
import { UserModule } from './modules/user/user.module';
|
||||
import { UserModule } from './modules/user/user.module'
|
||||
|
||||
@Module({
|
||||
imports: [InitModule, UserModule],
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { InitService } from './init.service';
|
||||
import { Test, TestingModule } from '@nestjs/testing'
|
||||
import { InitService } from './init.service'
|
||||
|
||||
describe('InitService', () => {
|
||||
let service: InitService;
|
||||
let service: InitService
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
providers: [InitService],
|
||||
}).compile();
|
||||
}).compile()
|
||||
|
||||
service = module.get<InitService>(InitService);
|
||||
});
|
||||
service = module.get<InitService>(InitService)
|
||||
})
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(service).toBeDefined();
|
||||
});
|
||||
});
|
||||
expect(service).toBeDefined()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { UserController } from './user.controller';
|
||||
import { Test, TestingModule } from '@nestjs/testing'
|
||||
import { UserController } from './user.controller'
|
||||
|
||||
describe('UserController', () => {
|
||||
let controller: UserController;
|
||||
let controller: UserController
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [UserController],
|
||||
}).compile();
|
||||
}).compile()
|
||||
|
||||
controller = module.get<UserController>(UserController);
|
||||
});
|
||||
controller = module.get<UserController>(UserController)
|
||||
})
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(controller).toBeDefined();
|
||||
});
|
||||
});
|
||||
expect(controller).toBeDefined()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Controller } from '@nestjs/common';
|
||||
import { Controller } from '@nestjs/common'
|
||||
|
||||
@Controller('user')
|
||||
export class UserController {}
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { UserService } from './user.service';
|
||||
import { Test, TestingModule } from '@nestjs/testing'
|
||||
import { UserService } from './user.service'
|
||||
|
||||
describe('UserService', () => {
|
||||
let service: UserService;
|
||||
let service: UserService
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
providers: [UserService],
|
||||
}).compile();
|
||||
}).compile()
|
||||
|
||||
service = module.get<UserService>(UserService);
|
||||
});
|
||||
service = module.get<UserService>(UserService)
|
||||
})
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(service).toBeDefined();
|
||||
});
|
||||
});
|
||||
expect(service).toBeDefined()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { Injectable } from '@nestjs/common'
|
||||
|
||||
@Injectable()
|
||||
export class UserService {}
|
||||
|
||||
Reference in New Issue
Block a user