diff --git a/test/modules/finance.spec.ts b/test/modules/finance.spec.ts index 3b6f49c99db..5c3549c1c36 100644 --- a/test/modules/finance.spec.ts +++ b/test/modules/finance.spec.ts @@ -166,9 +166,7 @@ describe('finance', () => { }); it('should set a specified length', () => { - let expected = faker.number.int(20); - - expected ||= 4; + const expected = faker.number.int(20) || 4; const mask = faker.finance.maskedNumber({ length: expected,