comparison benchmark/bun-http-framework-benchmark/dev/nest-node/src/app.controller.spec.ts @ 186:8cf4ec5e2191 hg-web

Fixed merge conflict.
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 22:38:59 -0800
parents a8976a008a9d
children
comparison
equal deleted inserted replaced
176:fed99fc04e12 186:8cf4ec5e2191
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 app: TestingModule;
7
8 beforeAll(async () => {
9 app = await Test.createTestingModule({
10 controllers: [AppController],
11 providers: [AppService],
12 }).compile();
13 });
14
15 describe('getHello', () => {
16 it('should return "Hello World!"', () => {
17 const appController = app.get(AppController);
18 expect(appController.getHello()).toBe('Hello World!');
19 });
20 });
21 });