fennec-be/src/repos/repos.resolver.spec.ts

31 lines
751 B
TypeScript

import { Test, TestingModule } from '@nestjs/testing';
import { ReposResolver } from './repos.resolver';
import { ReposService } from './repos.service';
import { ProjectsService } from '../projects/projects.service';
describe('ReposResolver', () => {
let resolver: ReposResolver;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [
ReposResolver,
{
provide: ReposService,
useValue: {},
},
{
provide: ProjectsService,
useValue: {},
},
],
}).compile();
resolver = module.get<ReposResolver>(ReposResolver);
});
it('should be defined', () => {
expect(resolver).toBeDefined();
});
});