Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SocketSomeone committed Dec 22, 2021
1 parent 478ad97 commit eb0ac97
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 38 deletions.
26 changes: 13 additions & 13 deletions apps/bot/src/bot.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
botController = app.get<BotController>(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!');
});
});
});
10 changes: 5 additions & 5 deletions apps/bot/src/bot.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
6 changes: 3 additions & 3 deletions apps/bot/src/bot.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
6 changes: 3 additions & 3 deletions apps/bot/src/bot.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common';

@Injectable()
export class BotService {
getHello(): string {
return 'Hello World!';
}
getHello(): string {
return 'Hello World!';
}
}
4 changes: 2 additions & 2 deletions apps/bot/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
4 changes: 2 additions & 2 deletions libs/common/src/common.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
20 changes: 10 additions & 10 deletions libs/common/src/common.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>(CommonService);
});
service = module.get<CommonService>(CommonService);
});

it('should be defined', () => {
expect(service).toBeDefined();
});
it('should be defined', () => {
expect(service).toBeDefined();
});
});

0 comments on commit eb0ac97

Please sign in to comment.