spec/js/numbers/currency.spec.js in twitter_cldr_js-2.3.2 vs spec/js/numbers/currency.spec.js in twitter_cldr_js-2.4.0
- old
+ new
@@ -13,10 +13,10 @@
expect(formatter.format(12)).toEqual("$12.00");
});
it("handles negative numbers", function() {
// yes, negative numbers (at least for accounting) are represented using parentheses without a minus sign
- expect(formatter.format(-12)).toEqual("($12.00)");
+ expect(formatter.format(-12)).toEqual("-$12.00");
});
it("should use the specified currency symbol when specified", function() {
// S/. is the symbol for the Peruvian Nuevo Sol, just in case you were curious
expect(formatter.format(12, {currency: "S/."})).toEqual("S/.12.00");
\ No newline at end of file