diff options
| author | ST-DDT <[email protected]> | 2024-05-25 21:49:24 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-25 19:49:24 +0000 |
| commit | a60f097af43bee273c431e26b19456d8fe7f4256 (patch) | |
| tree | ce82b776da6cf1cd0d11de3e33ce4f966ea32196 /test | |
| parent | 558b959e0e2f791dab0ba2f500493ba7ddbd25e2 (diff) | |
| download | faker-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.ts | 3 |
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, }); |
