fixed tests

This commit is contained in:
Dolan Miu
2016-05-02 22:39:03 +01:00
parent 060ee26225
commit f805d6bef7
6 changed files with 16 additions and 18 deletions

View File

@ -16,7 +16,7 @@ describe("Attribute", () => {
var newAttrs = new Attributes();
var stringifiedJson = JSON.stringify(newAttrs);
var newJson = JSON.parse(stringifiedJson);
assert.isUndefined(newJson._attr.val);
assert.isUndefined(newJson.root.val);
});
it("should have val as defined with populated constructor", () => {
@ -25,7 +25,7 @@ describe("Attribute", () => {
});
var stringifiedJson = JSON.stringify(newAttrs);
var newJson = JSON.parse(stringifiedJson);
assert(newJson._attr.val === "test");
assert.equal(newJson.root.val, "test");
});
it("should have space value as defined with populated constructor", () => {
@ -34,7 +34,7 @@ describe("Attribute", () => {
});
var stringifiedJson = JSON.stringify(newAttrs);
var newJson = JSON.parse(stringifiedJson);
assert(newJson._attr.space === "spaceTest");
assert.equal(newJson.root.space, "spaceTest");
});
});
});