Skip to content

Commit d6dbf8f

Browse files
authored
Merge branch 'next' into feat/phone-style
2 parents fbc61b3 + ccd7054 commit d6dbf8f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/internal/bind-this-to-member-functions.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ describe('internal', () => {
1818

1919
const someMethodWithoutBind = someModule.someMethod;
2020

21-
// The second error message is for NodeJS v14 support
2221
expect(() => someMethodWithoutBind()).toThrow(
23-
/^(Cannot read properties of undefined \(reading 'faker'\)|Cannot read property 'faker' of undefined)$/
22+
new Error("Cannot read properties of undefined (reading 'faker')")
2423
);
2524

2625
bindThisToMemberFunctions(someModule);

0 commit comments

Comments
 (0)