fix(test): repos resolver 测试用例不通过的问题。

This commit is contained in:
Ivan 2021-03-01 11:47:04 +08:00
parent 32102ffefd
commit ea4ca724e3

View File

@ -1,6 +1,7 @@
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;
@ -13,6 +14,10 @@ describe('ReposResolver', () => {
provide: ReposService,
useValue: {},
},
{
provide: ProjectsService,
useValue: {},
},
],
}).compile();