Commit eb7ee50
test: improve code in test-crypto-verify
* use common.mustCall to validate functions executions
* use common.fail to check test fail
* remove console.log
* use arrow functions
PR-URL: #10845
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent efa9845 commit eb7ee50Copy full SHA for eb7ee50
File tree
Expand file treeCollapse file tree
1 file changed
+12
-16
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+12
-16
lines changedOpen diff view settings
Collapse file
test/parallel/test-crypto-verify-failure.js
Copy file name to clipboardExpand all lines: test/parallel/test-crypto-verify-failure.js+12-16Lines changed: 12 additions & 16 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
22 | | - |
23 | | - |
24 | | - |
| 22 | + |
| 23 | + |
25 | 24 | |
26 | | - |
| 25 | + |
27 | 26 | |
28 | 27 | |
29 | 28 | |
30 | 29 | |
31 | 30 | |
32 | 31 | |
33 | | - |
34 | 32 | |
35 | 33 | |
36 | 34 | |
37 | 35 | |
38 | 36 | |
39 | | - |
| 37 | + |
40 | 38 | |
41 | | - |
| 39 | + |
42 | 40 | |
43 | | - |
| 41 | + |
44 | 42 | |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
53 | 49 | |
54 | 50 | |
0 commit comments