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

Commit 45af785

Browse files
committed
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 e0c8aaf commit 45af785

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)