aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShinigami <[email protected]>2024-03-07 09:00:41 +0100
committerGitHub <[email protected]>2024-03-07 08:00:41 +0000
commitccd7054e341de0f9016359ca64e1985110476729 (patch)
treea3c7b33c9c93a52a7add5de1368ebf1a3dd68a4c /test
parentb3afc8f351003cf9df9984fb5be6cd46e18f71d8 (diff)
downloadfaker-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.ts3
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);