Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/maybeanerd/booktracker. a multi platform application and server to track your book reading journey
hacktoberfest
Something went wrong. Try again.
617 B · 22 lines
TypeScript
at main
1234567891011121314151617181920212223import { 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!'); }); });});