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 { Test, TestingModule } from '@nestjs/testing';
import { ReposResolver } from './repos.resolver'; import { ReposResolver } from './repos.resolver';
import { ReposService } from './repos.service'; import { ReposService } from './repos.service';
import { ProjectsService } from '../projects/projects.service';
describe('ReposResolver', () => { describe('ReposResolver', () => {
let resolver: ReposResolver; let resolver: ReposResolver;
@ -13,6 +14,10 @@ describe('ReposResolver', () => {
provide: ReposService, provide: ReposService,
useValue: {}, useValue: {},
}, },
{
provide: ProjectsService,
useValue: {},
},
], ],
}).compile(); }).compile();