diff options
| author | Shinigami <[email protected]> | 2024-03-07 09:00:41 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-07 08:00:41 +0000 |
| commit | ccd7054e341de0f9016359ca64e1985110476729 (patch) | |
| tree | a3c7b33c9c93a52a7add5de1368ebf1a3dd68a4c /test | |
| parent | b3afc8f351003cf9df9984fb5be6cd46e18f71d8 (diff) | |
| download | faker-ccd7054e341de0f9016359ca64e1985110476729.tar.xz faker-ccd7054e341de0f9016359ca64e1985110476729.zip | |
test: remove node v14 case (#2723)
Diffstat (limited to 'test')
| -rw-r--r-- | test/internal/bind-this-to-member-functions.spec.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/internal/bind-this-to-member-functions.spec.ts b/test/internal/bind-this-to-member-functions.spec.ts index 7dedc00e..22a3012d 100644 --- a/test/internal/bind-this-to-member-functions.spec.ts +++ b/test/internal/bind-this-to-member-functions.spec.ts @@ -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); |
