fix(test): repos resolver 测试用例不通过的问题。
This commit is contained in:
parent
32102ffefd
commit
ea4ca724e3
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user