Skip to content

fix: re-enable failing test on windows #224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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