Skip to content

Commit 45150d1

Browse files
authored
test(finance): improve readability (#2766)
1 parent df1c83d commit 45150d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/modules/finance.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ describe('finance', () => {
166166
});
167167

168168
it('should set a specified length', () => {
169-
const expected = faker.number.int(20) || 4;
169+
const expected = faker.number.int({ min: 1, max: 20 });
170170

171171
const mask = faker.finance.maskedNumber({
172172
length: expected,

0 commit comments

Comments
 (0)