2021-02-19 13:11:03 +08:00
|
|
|
import { Test, TestingModule } from '@nestjs/testing';
|
|
|
|
import { ReposResolver } from './repos.resolver';
|
2021-02-24 10:53:49 +08:00
|
|
|
import { ReposService } from './repos.service';
|
2021-02-19 13:11:03 +08:00
|
|
|
|
|
|
|
describe('ReposResolver', () => {
|
|
|
|
let resolver: ReposResolver;
|
|
|
|
|
|
|
|
beforeEach(async () => {
|
|
|
|
const module: TestingModule = await Test.createTestingModule({
|
2021-02-24 10:53:49 +08:00
|
|
|
providers: [
|
|
|
|
ReposResolver,
|
|
|
|
{
|
|
|
|
provide: ReposService,
|
|
|
|
useValue: {},
|
|
|
|
},
|
|
|
|
],
|
2021-02-19 13:11:03 +08:00
|
|
|
}).compile();
|
|
|
|
|
|
|
|
resolver = module.get<ReposResolver>(ReposResolver);
|
|
|
|
});
|
|
|
|
|
2021-02-24 09:44:07 +08:00
|
|
|
it('should be defined', () => {
|
2021-02-19 13:11:03 +08:00
|
|
|
expect(resolver).toBeDefined();
|
|
|
|
});
|
|
|
|
});
|