Listory/src/auth/auth.service.spec.ts

19 lines
446 B
TypeScript
Raw Normal View History

2020-01-25 22:19:14 +01:00
import { Test, TestingModule } from "@nestjs/testing";
2020-02-01 16:11:48 +01:00
import { AuthService } from "./auth.service";
2020-01-25 22:19:14 +01:00
2020-02-01 16:11:48 +01:00
describe("AuthService", () => {
let service: AuthService;
2020-01-25 22:19:14 +01:00
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
2020-05-02 17:17:20 +02:00
providers: [AuthService],
2020-01-25 22:19:14 +01:00
}).compile();
2020-02-01 16:11:48 +01:00
service = module.get<AuthService>(AuthService);
2020-01-25 22:19:14 +01:00
});
it("should be defined", () => {
expect(service).toBeDefined();
});
});