Skip to content

Commit d841bef

Browse files
daakulukeed
andauthored
chore: handle Node16+ error message text assertion (#23)
* fix throws test with changed error text * Update test/inject.js Co-authored-by: Luke Edwards <[email protected]>
1 parent f1db5bf commit d841bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/inject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test('throws', () => {
3131
assert.unreachable('should throw');
3232
} catch (err) {
3333
assert.instance(err, TypeError);
34-
assert.is(err.message, `Cannot read property 'foo' of undefined`);
34+
assert.match(err.message, /Cannot read propert(ies|y 'foo') of undefined/);
3535
}
3636
});
3737

0 commit comments

Comments
 (0)