| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -199,6 +199,16 @@ assert.strictEqual(errors.message('ERR_INVALID_ARG_TYPE', | |||
| 199 | 199 | assert.strictEqual(errors.message('ERR_INVALID_ARG_TYPE', | |
| 200 | 200 | ['a', 'b', null]), | |
| 201 | 201 | 'The "a" argument must be of type b. Received type null'); | |
| 202 | + assert.strictEqual(errors.message('ERR_INVALID_ARG_TYPE', ['a', 'not b']), | ||
| 203 | + 'The "a" argument must not be of type b'); | ||
| 204 | + assert.strictEqual(errors.message('ERR_INVALID_ARG_TYPE', ['a.b', 'not c']), | ||
| 205 | + 'The "a.b" property must not be of type c'); | ||
| 206 | + assert.strictEqual( | ||
| 207 | + errors.message('ERR_INVALID_ARG_TYPE', ['first argument', 'c']), | ||
| 208 | + 'The first argument must be of type c'); | ||
| 209 | + assert.strictEqual( | ||
| 210 | + errors.message('ERR_INVALID_ARG_TYPE', [['a', 'b', 'c'], 'not d']), | ||
| 211 | + 'The "a", "b", "c" arguments must not be of type d'); | ||
| 202 | 212 | ||
| 203 | 213 | // Test ERR_INVALID_URL_SCHEME | |
| 204 | 214 | assert.strictEqual(errors.message('ERR_INVALID_URL_SCHEME', ['file']), | |
| Back | FazBrowse Home | New Git URL |
0 commit comments