Skip to content

Commit

Permalink
test: remove node v14 case (#2723)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Mar 7, 2024
1 parent b3afc8f commit ccd7054
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/internal/bind-this-to-member-functions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ describe('internal', () => {

const someMethodWithoutBind = someModule.someMethod;

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

bindThisToMemberFunctions(someModule);
Expand Down

0 comments on commit ccd7054

Please sign in to comment.