Skip to content

Commit 713960b

Browse files
authored
Update index.test.ts
1 parent c4040d5 commit 713960b

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/utilities/currency/index.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ describe('format', () => {
1616
});
1717

1818
test('should format with different precision', () => {
19-
expect(format(0.01, { precistion: 3 })).toBe('0,010');
20-
expect(format(0.1, { precistion: 3 })).toBe('0,100');
21-
expect(format(1.1, { precistion: 3 })).toBe('1,100');
22-
expect(format(1.01, { precistion: 3 })).toBe('1,010');
23-
expect(format(1.001, { precistion: 3 })).toBe('1,001');
24-
expect(format(10.001, { precistion: 3 })).toBe('10,001');
25-
expect(format(100.001, { precistion: 3 })).toBe('100,001');
26-
expect(format(1000.001, { precistion: 3 })).toBe('1.000,001');
27-
expect(format(10000.001, { precistion: 3 })).toBe('10.000,001');
28-
expect(format(100000.001, { precistion: 3 })).toBe('100.000,001');
29-
expect(format(1000000.001, { precistion: 3 })).toBe('1.000.000,001');
19+
expect(format(0.01, { precision: 3 })).toBe('0,010');
20+
expect(format(0.1, { precision: 3 })).toBe('0,100');
21+
expect(format(1.1, { precision: 3 })).toBe('1,100');
22+
expect(format(1.01, { precision: 3 })).toBe('1,010');
23+
expect(format(1.001, { precision: 3 })).toBe('1,001');
24+
expect(format(10.001, { precision: 3 })).toBe('10,001');
25+
expect(format(100.001, { precision: 3 })).toBe('100,001');
26+
expect(format(1000.001, { precision: 3 })).toBe('1.000,001');
27+
expect(format(10000.001, { precision: 3 })).toBe('10.000,001');
28+
expect(format(100000.001, { precision: 3 })).toBe('100.000,001');
29+
expect(format(1000000.001, { precision: 3 })).toBe('1.000.000,001');
3030
});
3131
});
3232

0 commit comments

Comments
 (0)