Commit 2f44d7f
test: refactor test-crypto-random
* specify constructor for assert.throws()
* load additional modules only if crypto check passes
* normalize some potentially confusing indentation
* provided actual first and expected second in assertions
PR-URL: #10232
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>1 parent 730c3b2 commit 2f44d7fCopy full SHA for 2f44d7f
File tree
Expand file treeCollapse file tree
1 file changed
+11
-32
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+11
-32
lines changedOpen diff view settings
Collapse file
test/parallel/test-crypto-random.js
Copy file name to clipboardExpand all lines: test/parallel/test-crypto-random.js+11-32Lines changed: 11 additions & 32 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
| 2 | + |
4 | 3 | |
5 | 4 | |
6 | 5 | |
7 | 6 | |
8 | 7 | |
9 | | - |
| 8 | + |
| 9 | + |
| 10 | + |
10 | 11 | |
11 | 12 | |
12 | 13 | |
13 | 14 | |
14 | 15 | |
15 | 16 | |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
29 | 21 | |
30 | 22 | |
31 | 23 | |
32 | | - |
33 | | - |
34 | | - |
| 24 | + |
| 25 | + |
| 26 | + |
35 | 27 | |
36 | 28 | |
37 | 29 | |
38 | 30 | |
39 | 31 | |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | 32 | |
54 | 33 | |
55 | 34 | |
|
0 commit comments