spec/js/numbers/currency.spec.js in twitter_cldr_js-1.0.0 vs spec/js/numbers/currency.spec.js in twitter_cldr_js-2.0.0

- old
+ new

@@ -1,9 +1,9 @@ // Copyright 2012 Twitter, Inc // http://www.apache.org/licenses/LICENSE-2.0 -var TwitterCldr = require('../../../lib/assets/javascripts/twitter_cldr/twitter_cldr_en.js'); +var TwitterCldr = require('../../../lib/assets/javascripts/twitter_cldr/en.js'); describe("CurrencyFormatter", function() { describe("#format", function() { beforeEach(function() { formatter = new TwitterCldr.CurrencyFormatter(); @@ -22,10 +22,10 @@ // 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"); }); it("should use the currency symbol for the corresponding currency code", function() { - expect(formatter.format(12, {currency: "PEN"})).toEqual("S/.12.00"); + expect(formatter.format(12, {currency: "PEN"})).toEqual("PEN12.00"); }); it("overrides the default precision", function() { expect(formatter.format(12, {precision: 3})).toEqual("$12.000"); }); \ No newline at end of file