mirror of https://github.com/nocodb/nocodb
DarkPhoenix2704
10 months ago
3 changed files with 28 additions and 5 deletions
@ -0,0 +1,21 @@ |
|||||||
|
import { Test } from '@nestjs/testing'; |
||||||
|
import { CalendarsService } from '../services/calendars.service'; |
||||||
|
import { CalendarsController } from './calendars.controller'; |
||||||
|
import type { TestingModule } from '@nestjs/testing'; |
||||||
|
|
||||||
|
describe('CalendarsController', () => { |
||||||
|
let controller: CalendarsController; |
||||||
|
|
||||||
|
beforeEach(async () => { |
||||||
|
const module: TestingModule = await Test.createTestingModule({ |
||||||
|
controllers: [CalendarsController], |
||||||
|
providers: [CalendarsService], |
||||||
|
}).compile(); |
||||||
|
|
||||||
|
controller = module.get<CalendarsController>(CalendarsController); |
||||||
|
}); |
||||||
|
|
||||||
|
it('should be defined', () => { |
||||||
|
expect(controller).toBeDefined(); |
||||||
|
}); |
||||||
|
}); |
Loading…
Reference in new issue