We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fbc61b3 + ccd7054 commit d6dbf8fCopy full SHA for d6dbf8f
1 file changed
test/internal/bind-this-to-member-functions.spec.ts
@@ -18,9 +18,8 @@ describe('internal', () => {
18
19
const someMethodWithoutBind = someModule.someMethod;
20
21
- // The second error message is for NodeJS v14 support
22
expect(() => someMethodWithoutBind()).toThrow(
23
- /^(Cannot read properties of undefined \(reading 'faker'\)|Cannot read property 'faker' of undefined)$/
+ new Error("Cannot read properties of undefined (reading 'faker')")
24
);
25
26
bindThisToMemberFunctions(someModule);
0 commit comments