Commit 67d97bc
test: improve test-assert
Add RegExp to check assert throws the expected AssertionErrors.
For the one with multiple flags is ok to hardcode the flags since the
spec indicates the ordering will always be `gim`:
Refs: http://www.ecma-international.org/ecma-262/6.0/#sec-get-regexp.prototype.flags
PR-URL: #10916
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 69a04a9 commit 67d97bcCopy full SHA for 67d97bc
File tree
Expand file treeCollapse file tree
1 file changed
+20
-5
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+20
-5
lines changedOpen diff view settings
Collapse file
test/parallel/test-assert.js
Copy file name to clipboardExpand all lines: test/parallel/test-assert.js+20-5Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
214 | 214 | |
215 | 215 | |
216 | 216 | |
217 | | - |
218 | | - |
219 | | - |
220 | | - |
221 | | - |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
222 | 237 | |
223 | 238 | |
224 | 239 | |
|
0 commit comments