spec/js/calendars/timespan.spec.js in twitter_cldr_js-2.2.4 vs spec/js/calendars/timespan.spec.js in twitter_cldr_js-2.3.0
- old
+ new
@@ -8,11 +8,11 @@
formatter = new TwitterCldr.TimespanFormatter();
});
describe("#format", function() {
it("approximates timespans accurately if explicity asked to", function() {
- var options = {direction: "none", approximate: true}
+ var options = {direction: "none", approximate: true};
expect(formatter.format(44, options)).toEqual("44 seconds");
expect(formatter.format(45, options)).toEqual("1 minute");
expect(formatter.format(2699, options)).toEqual("45 minutes");
expect(formatter.format(2700, options)).toEqual("1 hour");
@@ -29,10 +29,10 @@
expect(formatter.format(23667694, options)).toEqual("9 months");
expect(formatter.format(23667695, options)).toEqual("1 year");
});
it("doesn't approximate timespans by default", function() {
- var options = {direction: "none"}
+ var options = {direction: "none"};
expect(formatter.format(44, options)).toEqual("44 seconds");
expect(formatter.format(45, options)).toEqual("45 seconds");
expect(formatter.format(2699, options)).toEqual("45 minutes");
expect(formatter.format(2700, options)).toEqual("45 minutes");