Skip to content
Snippets Groups Projects
tclStopPoint.service.spec.ts 793 B
Newer Older
  • Learn to ignore specific revisions
  • import { HttpModule } from '@nestjs/common';
    import { getModelToken } from '@nestjs/mongoose';
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    import { Test, TestingModule } from '@nestjs/testing';
    
    import { TclStopPoint } from './tclStopPoint.schema';
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    import { TclStopPointService } from './tclStopPoint.service';
    
    describe('TclService', () => {
      let service: TclStopPointService;
    
      beforeEach(async () => {
        const module: TestingModule = await Test.createTestingModule({
    
          imports: [HttpModule],
          providers: [
            TclStopPointService,
            {
              provide: getModelToken('TclStopPoint'),
              useValue: TclStopPoint,
            },
          ],
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        }).compile();
    
        service = module.get<TclStopPointService>(TclStopPointService);
      });
    
      it('should be defined', () => {
        expect(service).toBeDefined();
      });
    });