Skip to content

Commit

Permalink
test(core/pipeline): Fix failing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen authored and mergify[bot] committed Mar 8, 2020
1 parent f66abce commit 1b4d02e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ describe('PipelineRegistry: API', function() {
Registry.pipeline.registerStage(config);
expect(Registry.pipeline.getStageConfig({ type: 'a' } as IStage)).toEqual(config);
expect(Registry.pipeline.getStageConfig({ type: 'a1' } as IStage)).toEqual(config);
expect(Registry.pipeline.getStageConfig({ type: 'b' } as IStage)).toBe(null);
expect(Registry.pipeline.getStageConfig({ type: 'b' } as IStage)).toBeFalsy();
}),
);
});
Expand Down Expand Up @@ -234,7 +234,7 @@ describe('PipelineRegistry: API', function() {
const pipelineRegistry = new PipelineRegistry();
slimmaker.filter(stage => stage !== unmatchedStage).forEach(stage => pipelineRegistry.registerStage(stage));

expect(pipelineRegistry.getStageConfig({ type: 'x' } as IStage)).toEqual(null);
expect(pipelineRegistry.getStageConfig({ type: 'x' } as IStage)).toBeFalsy();
});

it('matches renamed stage with both stageType.key or (legacy) stageType.alias', function() {
Expand Down

0 comments on commit 1b4d02e

Please sign in to comment.