@t7/utils
Version:
Utility methods for T7 components.
21 lines (18 loc) • 653 B
JavaScript
var _ = require("./");
// Dependencies.
// Describe test.
describe('formatMoneyIN', function () {
// ===========================
// Test for "existing" values.
// ===========================
it('handles "existing" values', function () {
expect((0, _.formatMoneyIN)(1000).replace(/\s+/g, '')).toBe('₹1,000.00');
}); // =======================================
// Test for `null` and `undefined` values.
// =======================================
it('handles `null` and `undefined` values', function () {
expect((0, _.formatMoneyIN)(null)).toBe('');
expect((0, _.formatMoneyIN)(undefined)).toBe('');
});
});
;