21 lines
526 B
TypeScript
21 lines
526 B
TypeScript
import { Test, TestingModule } from '@nestjs/testing';
|
|
import { EventService } from './event.service';
|
|
import { HttpModule } from '@nestjs/axios';
|
|
|
|
describe('EventService', () => {
|
|
let service: EventService;
|
|
|
|
beforeEach(async () => {
|
|
const module: TestingModule = await Test.createTestingModule({
|
|
imports: [HttpModule],
|
|
providers: [EventService],
|
|
}).compile();
|
|
|
|
service = module.get<EventService>(EventService);
|
|
});
|
|
|
|
it('should be defined', () => {
|
|
expect(service).toBeDefined();
|
|
});
|
|
});
|