Skip to content

Commit

Permalink
fix: re-enable failing test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Jan 19, 2022
1 parent ec4efba commit 1ee40db
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions test/finance.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,26 +280,23 @@ describe('finance.js', function () {
});
});

// 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,
});
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 () {
Expand Down

0 comments on commit 1ee40db

Please sign in to comment.