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: use more descriptive variable name
i -> notNumber
  • Loading branch information
Leko committed Dec 18, 2017
commit 7101bbfcd9aae0ef42a74d8449ac586649d80788
4 changes: 2 additions & 2 deletions test/parallel/test-crypto-pbkdf2.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ common.expectsError(
}
);

['str', null, undefined, [], {}].forEach((i) => {
['str', null, undefined, [], {}].forEach((notNumber) => {
common.expectsError(
() => {
crypto.pbkdf2Sync('password', 'salt', 1, i, 'sha256');
crypto.pbkdf2Sync('password', 'salt', 1, notNumber, 'sha256');
}, {
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
Expand Down