test: refactor and fix test-crypto · nodejs/node@272a971 · GitHub
Skip to content

Commit 272a971

Browse files
targosMylesBorins
authored andcommitted
test: refactor and fix test-crypto
* var -> const. * Group and sort imports. * Replace use of the deprecated crypto.createCredentials. * Fix incorrect use of string instead of RegExp in `throws` assertions. * Clone array with `.slice()` and remove dependency on util. * assert.notEqual -> assert.notStrictEqual. * indexOf -> includes. PR-URL: #9807 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 8bb66cd commit 272a971

1 file changed

Lines changed: 43 additions & 44 deletions

File tree

test/parallel/test-crypto.js

Lines changed: 43 additions & 44 deletions

0 commit comments

Comments
 (0)