MCPcopy Index your code
hub / github.com/nodejs/node / assertSameError

Function assertSameError

test/parallel/test-internal-webidl.js:38–43  ·  view source on GitHub ↗
(fn, expected)

Source from the content-addressed store, hash-verified

36}
37
38function assertSameError(fn, expected) {
39 assert.throws(fn, (err) => {
40 assert.strictEqual(err, expected);
41 return true;
42 });
43}
44
45assert.strictEqual(webidl.type(undefined), 'Undefined');
46assert.strictEqual(webidl.type(null), 'Null');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…