Skip to content

Commit 1f52446

Browse files
tools: auto fix custom eslint rule for crypto-check.js
Adds "missing crypto" message in tests. Refs : #16636
1 parent 6d6cdc6 commit 1f52446

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/parallel/test-eslint-crypto-check.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ new RuleTester().run('crypto-check', rule, {
1616
if (!common.hasCrypto) {
1717
common.skip();
1818
}
19-
require('crypto');
19+
require("crypto");
2020
`
2121
],
2222
invalid: [
@@ -25,19 +25,19 @@ new RuleTester().run('crypto-check', rule, {
2525
errors: [{ message }],
2626
output: `
2727
if (!common.hasCrypto) {
28-
common.skip();
28+
common.skip("missing crypto");
2929
}
30-
require('crypto');
30+
require("crypto");
3131
`
3232
},
3333
{
3434
code: 'if (common.foo) {} require("crypto")',
3535
errors: [{ message }],
3636
output: `
3737
if (!common.hasCrypto) {
38-
common.skip();
38+
common.skip("missing crypto");
3939
}
40-
require('crypto');
40+
require("crypto");
4141
`
4242
}
4343
]

0 commit comments

Comments
 (0)