collections.controller.spec.ts 648 B

12345678910111213141516171819
  1. import { Test, TestingModule } from '@nestjs/testing';
  2. import { CollectionsController } from './collections.controller';
  3. import { CacheModule } from '@nestjs/common';
  4. import { CollectionsModule } from './collections.module';
  5. describe('CollectionsController', () => {
  6. let controller: CollectionsController;
  7. beforeEach(async () => {
  8. const module: TestingModule = await Test.createTestingModule({
  9. imports: [CacheModule.register({}), CollectionsModule],
  10. }).compile();
  11. controller = module.get<CollectionsController>(CollectionsController);
  12. });
  13. it('should be defined', () => {
  14. expect(controller).toBeDefined();
  15. });
  16. });