added run

This commit is contained in:
Dolan Miu
2016-03-30 03:50:53 +01:00
parent b749e42671
commit a0acb6d1a6
9 changed files with 48 additions and 23 deletions

View File

@ -27,5 +27,14 @@ describe('Attribute', () => {
var newJson = JSON.parse(stringifiedJson);
assert(newJson._attrs.val === "test");
});
it("should have space value as defined with populated constructor", () => {
var newAttrs = new Attributes({
space: "spaceTest"
});
var stringifiedJson = JSON.stringify(newAttrs);
var newJson = JSON.parse(stringifiedJson);
assert(newJson._attrs.space === "spaceTest");
});
});
});