META-INF.resources.bower_components.cldrjs.test.unit.core.set_available_bundles.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-globalize Show documentation
Show all versions of jwebmp-globalize Show documentation
The JWebSwing implementation for a full Globalization
define([
"src/core/set_available_bundles"
], function (setAvailableBundles) {
describe("Core setAvailableBundles", function () {
var fakeCldr = {
_availableBundleMap: {},
_availableBundleMapQueue: []
};
it("should set availableBundleMapQueue", function () {
setAvailableBundles(fakeCldr, {
main: {"en-US": {}}
});
expect(fakeCldr._availableBundleMapQueue).to.eql(["en-US"]);
setAvailableBundles(fakeCldr, {
main: {"pt-BR": {}}
});
expect(fakeCldr._availableBundleMapQueue).to.eql(["en-US", "pt-BR"]);
});
});
});