chore: migrate backend to monorepo apps and biome
This commit is contained in:
22
apps/notifications/src/notifications.controller.spec.ts
Normal file
22
apps/notifications/src/notifications.controller.spec.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { NotificationsController } from './notifications.controller';
|
||||
import { NotificationsService } from './notifications.service';
|
||||
|
||||
describe('NotificationsController', () => {
|
||||
let notificationsController: NotificationsController;
|
||||
|
||||
beforeEach(async () => {
|
||||
const app: TestingModule = await Test.createTestingModule({
|
||||
controllers: [NotificationsController],
|
||||
providers: [NotificationsService],
|
||||
}).compile();
|
||||
|
||||
notificationsController = app.get<NotificationsController>(NotificationsController);
|
||||
});
|
||||
|
||||
describe('root', () => {
|
||||
it('should return "Hello World!"', () => {
|
||||
expect(notificationsController.getHello()).toBe('Hello World!');
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user