Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: add invalid integrity test case
  • Loading branch information
zeckson committed May 27, 2019
commit 84a234bdb0839f2c407b8a6631a65cfae9dc4a93
6 changes: 5 additions & 1 deletion test/node-api/test_policy/test_policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function test(shouldFail, resources) {

console.log(stdout.toString(), stderr.toString());
if (shouldFail) {
assert.strictNotEqual(status, 0);
assert.notStrictEqual(status, 0);
} else {
assert.strictEqual(status, 0);
}
Expand All @@ -59,3 +59,7 @@ test(false, [{
url: depURL,
integrity: `sha256-${hash('sha256', depBody)}`
}]);
Comment thread
zeckson marked this conversation as resolved.
test(true, [{
url: depURL,
integrity: `sha256akjsalkjdlaskjdk-${hash('sha256', depBody)}`
}]);