You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
803 B
28 lines
803 B
import { BullModule, getQueueToken } from '@nestjs/bull';
|
|
import { Test, TestingModule } from '@nestjs/testing';
|
|
import { ScreenshotsController } from './screenshots.controller';
|
|
import { QUEUE_NAME } from './shared';
|
|
|
|
describe('ScreenshotsController', () => {
|
|
let controller: ScreenshotsController;
|
|
|
|
beforeEach(async () => {
|
|
const module: TestingModule = await Test.createTestingModule({
|
|
imports: [
|
|
BullModule.registerQueue({
|
|
name: QUEUE_NAME,
|
|
}),
|
|
],
|
|
controllers: [ScreenshotsController],
|
|
})
|
|
.overrideProvider(getQueueToken(QUEUE_NAME))
|
|
.useValue({})
|
|
.compile();
|
|
|
|
controller = module.get<ScreenshotsController>(ScreenshotsController);
|
|
});
|
|
|
|
it('should be defined', () => {
|
|
expect(controller).toBeDefined();
|
|
});
|
|
});
|
|
|