META-INF.resources.bower_components.cldrjs.test.unit.resource.set.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/resource/set",
], function (resourceSet) {
var data = {};
describe("Resource Set", function () {
it("should set value into new JSON data structure", function () {
resourceSet(data, ["i"], 1);
expect(data.i).to.equal(1);
resourceSet(data, ["a", "b", "c"], 5);
expect(data.a.b.c).to.equal(5);
});
it("should set value into existing JSON data structure", function () {
resourceSet(data, ["a", "b", "e"], 7);
expect(data.a.b.e).to.equal(7);
});
});
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy