Compare commits
2 Commits
22be1ffb33
...
092cf9c418
Author | SHA1 | Date | |
---|---|---|---|
|
092cf9c418 | ||
|
039f4b6d15 |
@ -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>(CommitLogsResolver);
|
||||
|
Loading…
Reference in New Issue
Block a user