Skip to content
Snippets Groups Projects
admin.service.spec.ts 453 B
Newer Older
  • Learn to ignore specific revisions
  • import { Test, TestingModule } from '@nestjs/testing';
    import { AdminService } from './admin.service';
    
    describe('AdminService', () => {
      let service: AdminService;
    
      beforeEach(async () => {
        const module: TestingModule = await Test.createTestingModule({
          providers: [AdminService],
        }).compile();
    
        service = module.get<AdminService>(AdminService);
      });
    
      it('should be defined', () => {
        expect(service).toBeDefined();
      });
    });