Fix tests on main (#479)

This commit is contained in:
Félix Malfait
2023-06-29 22:30:56 -07:00
committed by GitHub
parent eb7fb2ba8e
commit 3731380ce6
6 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import { ObjectType, Field, Int } from '@nestjs/graphql';
import { ObjectType, Field } from '@nestjs/graphql';
@ObjectType()
export class Event {

View File

@ -1,12 +1,14 @@
import { Test, TestingModule } from '@nestjs/testing';
import { EventResolver } from './event.resolver';
import { EventService } from './event.service';
import { HttpModule } from '@nestjs/axios';
describe('EventResolver', () => {
let resolver: EventResolver;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
imports: [HttpModule],
providers: [EventResolver, EventService],
}).compile();

View File

@ -1,4 +1,4 @@
import { Resolver, Mutation, Args, Context } from '@nestjs/graphql';
import { Resolver, Mutation, Args } from '@nestjs/graphql';
import { EventService } from './event.service';
import { Event } from './event.entity';
import { CreateEventInput } from './dto/create-event.input';

View File

@ -1,11 +1,13 @@
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();