spec/js/calendars/timespan.spec.js in twitter_cldr_js-2.4.0 vs spec/js/calendars/timespan.spec.js in twitter_cldr_js-3.1.0

- old
+ new

@@ -1,11 +1,14 @@ // Copyright 2012 Twitter, Inc // http://www.apache.org/licenses/LICENSE-2.0 -var TwitterCldr = require('../../../lib/assets/javascripts/twitter_cldr/en.js'); +var TwitterCldr = require('../../../lib/assets/javascripts/twitter_cldr/core.js'); +var data = require('../../../lib/assets/javascripts/twitter_cldr/en.js'); describe("TimespanFormatter", function() { + var formatter; beforeEach(function() { + TwitterCldr.set_data(data); formatter = new TwitterCldr.TimespanFormatter(); }); describe("#format", function() { it("approximates timespans accurately if explicity asked to", function() {