test: pass the test case.

This commit is contained in:
Ivan 2021-03-25 10:51:16 +08:00
parent 07fc98bc86
commit 211a90590f

View File

@ -1,6 +1,7 @@
import { Test, TestingModule } from '@nestjs/testing'; import { Test, TestingModule } from '@nestjs/testing';
import { PipelineTasksResolver } from './pipeline-tasks.resolver'; import { PipelineTasksResolver } from './pipeline-tasks.resolver';
import { PipelineTaskLogsService } from './pipeline-task-logs.service'; import { PipelineTaskLogsService } from './pipeline-task-logs.service';
import { PipelineTasksService } from './pipeline-tasks.service';
describe('PipelineTasksResolver', () => { describe('PipelineTasksResolver', () => {
let resolver: PipelineTasksResolver; let resolver: PipelineTasksResolver;
@ -9,6 +10,10 @@ describe('PipelineTasksResolver', () => {
const module: TestingModule = await Test.createTestingModule({ const module: TestingModule = await Test.createTestingModule({
providers: [ providers: [
PipelineTasksResolver, PipelineTasksResolver,
{
provide: PipelineTasksService,
useValue: {},
},
{ {
provide: PipelineTaskLogsService, provide: PipelineTaskLogsService,
useValue: {}, useValue: {},