Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
since [email protected] we're adding a "scope:dev/prod" label to every node
  • Loading branch information
admons committed Mar 14, 2023
1 parent 6144e09 commit fb9d394
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@snyk/cli-interface": "^2.11.2",
"@snyk/dep-graph": "^1.28.1",
"shescape": "1.6.1",
"snyk-poetry-lockfile-parser": "^1.1.7",
"snyk-poetry-lockfile-parser": "^1.2.0",
"tmp": "0.2.1"
},
"devDependencies": {
Expand Down
8 changes: 6 additions & 2 deletions test/system/inspect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ describe('inspect', () => {
{ name: 'poetry-fixtures-project', version: '0.1.0' }
);
const expected = builder
.addPkgNode({ name: 'jinja2', version: '2.11.2' }, 'jinja2')
.addPkgNode({ name: 'jinja2', version: '2.11.2' }, 'jinja2', {
labels: { scope: 'prod' },
})
.connectDep(builder.rootNodeId, 'jinja2')
.addPkgNode({ name: 'markupsafe', version: '1.1.1' }, 'markupsafe')
.addPkgNode({ name: 'markupsafe', version: '1.1.1' }, 'markupsafe', {
labels: { scope: 'prod' },
})
.connectDep('jinja2', 'markupsafe')
.build();

Expand Down

0 comments on commit fb9d394

Please sign in to comment.