auth.service.spec.ts 446 B

123456789101112131415161718
  1. import { Test, TestingModule } from '@nestjs/testing';
  2. import { AuthService } from './auth.service';
  3. describe('AuthService', () => {
  4. let service: AuthService;
  5. beforeEach(async () => {
  6. const module: TestingModule = await Test.createTestingModule({
  7. providers: [AuthService],
  8. }).compile();
  9. service = module.get<AuthService>(AuthService);
  10. });
  11. it('should be defined', () => {
  12. expect(service).toBeDefined();
  13. });
  14. });