spec/js/shared/bidi.spec.js in twitter_cldr_js-2.4.0 vs spec/js/shared/bidi.spec.js in twitter_cldr_js-3.1.0
- old
+ new
@@ -1,9 +1,12 @@
// 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');
+TwitterCldr.set_data(data);
+
var fs = require('fs');
var BIDI_TEST_PATH = __dirname + '/classpath_bidi_test.txt';
var DIRECTIONS = [null, "LTR", "RTL"];
@@ -109,6 +112,6 @@
expect(bidi_str.toString()).toEqual("world ةوزن hello");
});
// TODO: add tests for all other methods of Bidi class
xit("should implement all other methods properly")
-});
\ No newline at end of file
+});