From 039f4b6d15efcdb2546b43b82cd4b8a65e7ec781 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sun, 28 Mar 2021 20:27:20 +0800 Subject: [PATCH] test: pass case. --- src/pipelines/commit-logs.resolver.spec.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/pipelines/commit-logs.resolver.spec.ts b/src/pipelines/commit-logs.resolver.spec.ts index 61593b0..0bb68be 100644 --- a/src/pipelines/commit-logs.resolver.spec.ts +++ b/src/pipelines/commit-logs.resolver.spec.ts @@ -1,12 +1,24 @@ import { Test, TestingModule } from '@nestjs/testing'; +import { PipelineTasksService } from '../pipeline-tasks/pipeline-tasks.service'; import { CommitLogsResolver } from './commit-logs.resolver'; +import { PipelinesService } from './pipelines.service'; describe('CommitLogsResolver', () => { let resolver: CommitLogsResolver; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ - providers: [CommitLogsResolver], + providers: [ + CommitLogsResolver, + { + provide: PipelinesService, + useValue: {}, + }, + { + provide: PipelineTasksService, + useValue: {}, + }, + ], }).compile(); resolver = module.get(CommitLogsResolver);