diff --git a/apps/bot/src/bot.controller.spec.ts b/apps/bot/src/bot.controller.spec.ts index 19c4e31..7dc9ff0 100644 --- a/apps/bot/src/bot.controller.spec.ts +++ b/apps/bot/src/bot.controller.spec.ts @@ -3,20 +3,20 @@ import { BotController } from './bot.controller'; import { BotService } from './bot.service'; describe('BotController', () => { - let botController: BotController; + let botController: BotController; - beforeEach(async () => { - const app: TestingModule = await Test.createTestingModule({ - controllers: [BotController], - providers: [BotService], - }).compile(); + beforeEach(async () => { + const app: TestingModule = await Test.createTestingModule({ + controllers: [BotController], + providers: [BotService] + }).compile(); - botController = app.get(BotController); - }); + botController = app.get(BotController); + }); - describe('root', () => { - it('should return "Hello World!"', () => { - expect(botController.getHello()).toBe('Hello World!'); - }); - }); + describe('root', () => { + it('should return "Hello World!"', () => { + expect(botController.getHello()).toBe('Hello World!'); + }); + }); }); diff --git a/apps/bot/src/bot.controller.ts b/apps/bot/src/bot.controller.ts index 0b4c0bd..30a914e 100644 --- a/apps/bot/src/bot.controller.ts +++ b/apps/bot/src/bot.controller.ts @@ -3,10 +3,10 @@ import { BotService } from './bot.service'; @Controller() export class BotController { - constructor(private readonly botService: BotService) {} + constructor(private readonly botService: BotService) {} - @Get() - getHello(): string { - return this.botService.getHello(); - } + @Get() + getHello(): string { + return this.botService.getHello(); + } } diff --git a/apps/bot/src/bot.module.ts b/apps/bot/src/bot.module.ts index fc59505..7f3010d 100644 --- a/apps/bot/src/bot.module.ts +++ b/apps/bot/src/bot.module.ts @@ -3,8 +3,8 @@ import { BotController } from './bot.controller'; import { BotService } from './bot.service'; @Module({ - imports: [], - controllers: [BotController], - providers: [BotService], + imports: [], + controllers: [BotController], + providers: [BotService] }) export class BotModule {} diff --git a/apps/bot/src/bot.service.ts b/apps/bot/src/bot.service.ts index e691e61..c4dea9a 100644 --- a/apps/bot/src/bot.service.ts +++ b/apps/bot/src/bot.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common'; @Injectable() export class BotService { - getHello(): string { - return 'Hello World!'; - } + getHello(): string { + return 'Hello World!'; + } } diff --git a/apps/bot/src/main.ts b/apps/bot/src/main.ts index 8e7cf30..b0846ef 100644 --- a/apps/bot/src/main.ts +++ b/apps/bot/src/main.ts @@ -2,7 +2,7 @@ import { NestFactory } from '@nestjs/core'; import { BotModule } from './bot.module'; async function bootstrap() { - const app = await NestFactory.create(BotModule); - await app.listen(3000); + const app = await NestFactory.create(BotModule); + await app.listen(3000); } bootstrap(); diff --git a/libs/common/src/common.module.ts b/libs/common/src/common.module.ts index 53cf001..be03aad 100644 --- a/libs/common/src/common.module.ts +++ b/libs/common/src/common.module.ts @@ -2,7 +2,7 @@ import { Module } from '@nestjs/common'; import { CommonService } from './common.service'; @Module({ - providers: [CommonService], - exports: [CommonService], + providers: [CommonService], + exports: [CommonService] }) export class CommonModule {} diff --git a/libs/common/src/common.service.spec.ts b/libs/common/src/common.service.spec.ts index 6ea5a77..0b194b3 100644 --- a/libs/common/src/common.service.spec.ts +++ b/libs/common/src/common.service.spec.ts @@ -2,17 +2,17 @@ import { Test, TestingModule } from '@nestjs/testing'; import { CommonService } from './common.service'; describe('CommonService', () => { - let service: CommonService; + let service: CommonService; - beforeEach(async () => { - const module: TestingModule = await Test.createTestingModule({ - providers: [CommonService], - }).compile(); + beforeEach(async () => { + const module: TestingModule = await Test.createTestingModule({ + providers: [CommonService] + }).compile(); - service = module.get(CommonService); - }); + service = module.get(CommonService); + }); - it('should be defined', () => { - expect(service).toBeDefined(); - }); + it('should be defined', () => { + expect(service).toBeDefined(); + }); });