aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2024-05-25 21:49:24 +0200
committerGitHub <[email protected]>2024-05-25 19:49:24 +0000
commita60f097af43bee273c431e26b19456d8fe7f4256 (patch)
treece82b776da6cf1cd0d11de3e33ce4f966ea32196 /test
parent558b959e0e2f791dab0ba2f500493ba7ddbd25e2 (diff)
downloadfaker-a60f097af43bee273c431e26b19456d8fe7f4256.tar.xz
faker-a60f097af43bee273c431e26b19456d8fe7f4256.zip
infra(typescript-eslint): no-confusing-void-expression (#2909)
Diffstat (limited to 'test')
-rw-r--r--test/modules/helpers.spec.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/modules/helpers.spec.ts b/test/modules/helpers.spec.ts
index b9b59f22..09f26467 100644
--- a/test/modules/helpers.spec.ts
+++ b/test/modules/helpers.spec.ts
@@ -799,7 +799,8 @@ describe('helpers', () => {
});
it('should never return the callback result when probability is 0', () => {
- const actual = faker.helpers.maybe(() => expect.fail(), {
+ const method: () => unknown = expect.fail;
+ const actual = faker.helpers.maybe(method, {
probability: 0,
});