aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMohd Imran <[email protected]>2022-01-19 03:35:39 +0530
committerGitHub <[email protected]>2022-01-18 23:05:39 +0100
commit80e8b3d4aec2e8944f7488a86f6b1ad4d2b2445d (patch)
treed546fa0b0d7bea015fa2fa68af1182590b75cd3b /test
parentd72482b0a19c3e98b6c8ea96d6c8407711af60cc (diff)
downloadfaker-80e8b3d4aec2e8944f7488a86f6b1ad4d2b2445d.tar.xz
faker-80e8b3d4aec2e8944f7488a86f6b1ad4d2b2445d.zip
ci: add node version matrix (#179)
Co-authored-by: Shinigami92 <[email protected]>
Diffstat (limited to 'test')
-rw-r--r--test/finance.unit.js33
1 files changed, 18 insertions, 15 deletions
diff --git a/test/finance.unit.js b/test/finance.unit.js
index 117a3a80..fc5fd2d1 100644
--- a/test/finance.unit.js
+++ b/test/finance.unit.js
@@ -280,23 +280,26 @@ describe('finance.js', function () {
});
});
- it('should return the number formatted on the current locale', function () {
- const number = 6000,
- decimalPlaces = 2;
- const expected = number.toLocaleString(undefined, {
- minimumFractionDigits: decimalPlaces,
- });
+ // TODO @Shinigami92 2022-01-18: See https://github.com/faker-js/faker/pull/179
+ if (require('os').platform() !== 'win32') {
+ it('should return the number formatted on the current locale', function () {
+ const number = 6000,
+ decimalPlaces = 2;
+ const expected = number.toLocaleString(undefined, {
+ minimumFractionDigits: decimalPlaces,
+ });
- const amount = faker.finance.amount(
- number,
- number,
- decimalPlaces,
- undefined,
- true
- );
+ const amount = faker.finance.amount(
+ number,
+ number,
+ decimalPlaces,
+ undefined,
+ true
+ );
- assert.strictEqual(amount, expected);
- });
+ assert.strictEqual(amount, expected);
+ });
+ }
});
describe('transactionType()', function () {