Skip to content

Commit

Permalink
refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Sep 12, 2023
1 parent d860501 commit 037da70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xray/utils/resultstable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,23 +646,23 @@ func TestShouldDisqualifyEvidence(t *testing.T) {
}{
{
name: "package folders",
component: map[string]services.Component{"npm://protobufjs:6.11.2": services.Component{}},
component: map[string]services.Component{"npm://protobufjs:6.11.2": {}},
filePath: "file:///Users/jfrog/test/node_modules/protobufjs/src/badCode.js",
disqualify: true,
}, {
name: "nested folders",
component: map[string]services.Component{"npm://protobufjs:6.11.2": services.Component{}},
component: map[string]services.Component{"npm://protobufjs:6.11.2": {}},
filePath: "file:///Users/jfrog/test/node_modules/someDep/node_modules/protobufjs/src/badCode.js",
disqualify: true,
}, {
name: "applicability in node modules",
component: map[string]services.Component{"npm://protobufjs:6.11.2": services.Component{}},
component: map[string]services.Component{"npm://protobufjs:6.11.2": {}},
filePath: "file:///Users/jfrog/test/node_modules/mquery/src/badCode.js",
disqualify: false,
}, {
// Only npm supported
name: "not npm",
component: map[string]services.Component{"yarn://protobufjs:6.11.2": services.Component{}},
component: map[string]services.Component{"yarn://protobufjs:6.11.2": {}},
filePath: "file:///Users/jfrog/test/node_modules/protobufjs/src/badCode.js",
disqualify: false,
},
Expand Down

0 comments on commit 037da70

Please sign in to comment.