Skip to content

Commit

Permalink
feat(3068): pull latest config-parser (#622)
Browse files Browse the repository at this point in the history
* feat(3068): pull latest config-parser

* fix test
  • Loading branch information
klu909 authored Apr 30, 2024
1 parent b45ad82 commit 4d6d9e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

'use strict';

const parser = require('screwdriver-config-parser');
const parser = require('screwdriver-config-parser').parsePipelineYaml;
const workflowParser = require('screwdriver-workflow-parser');
const boom = require('@hapi/boom');
const hoek = require('@hapi/hoek');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"docker-parse-image": "^3.0.1",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
"screwdriver-config-parser": "^9.0.0",
"screwdriver-config-parser": "^10.0.0",
"screwdriver-data-schema": "^23.0.4",
"screwdriver-logger": "^2.0.0",
"screwdriver-workflow-parser": "^4.1.0"
Expand Down
4 changes: 3 additions & 1 deletion test/lib/pipeline.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,9 @@ describe('Pipeline Model', () => {
rewiremock('../../lib/pipelineFactory').with({
getInstance: sinon.stub().returns(pipelineFactoryMock)
});
rewiremock('screwdriver-config-parser').with(parserMock);
rewiremock('screwdriver-config-parser').with({
parsePipelineYaml: parserMock
});
rewiremock('../../lib/triggerFactory').with({
getInstance: sinon.stub().returns(triggerFactoryMock)
});
Expand Down

0 comments on commit 4d6d9e7

Please sign in to comment.