Fix argument in example calls to assert.throwsAsync()

Thanks Ashley!
This commit is contained in:
Philip Chimento 2023-01-10 10:35:55 -07:00 committed by Philip Chimento
parent 7f3558376d
commit ac1c3546c3
1 changed files with 5 additions and 5 deletions

View File

@ -46,11 +46,11 @@ includes: [asyncHelpers.js]
---*/ ---*/
asyncTest(async function () { asyncTest(async function () {
await assert.throwsAsync(TypeError, Array.fromAsync([], null), "null mapfn"); await assert.throwsAsync(TypeError, () => Array.fromAsync([], null), "null mapfn");
await assert.throwsAsync(TypeError, Array.fromAsync([], {}), "non-callable object mapfn"); await assert.throwsAsync(TypeError, () => Array.fromAsync([], {}), "non-callable object mapfn");
await assert.throwsAsync(TypeError, Array.fromAsync([], "String"), "string mapfn"); await assert.throwsAsync(TypeError, () => Array.fromAsync([], "String"), "string mapfn");
await assert.throwsAsync(TypeError, Array.fromAsync([], true), "boolean mapfn"); await assert.throwsAsync(TypeError, () => Array.fromAsync([], true), "boolean mapfn");
await assert.throwsAsync(TypeError, Array.fromAsync([], 3.1416), "number mapfn"); await assert.throwsAsync(TypeError, () => Array.fromAsync([], 3.1416), "number mapfn");
}); });
``` ```