added border

This commit is contained in:
Dolan Miu
2016-03-29 04:50:23 +01:00
parent 672cbb6922
commit e2929bc3a9
6 changed files with 92 additions and 10 deletions

View File

@ -1,6 +1,6 @@
/// <reference path="../typings/mocha/mocha.d.ts" />
/// <reference path="../typings/chai/chai.d.ts" />
import {Attributes} from "../docx/xml-components/p";
import {Attributes} from "../docx/xml-components";
import {assert} from "chai";
describe('Attribute', () => {
@ -20,7 +20,9 @@ describe('Attribute', () => {
});
it("should have val as defined with populated constructor", () => {
var newAttrs = new Attributes("test");
var newAttrs = new Attributes({
val: "test"
});
var stringifiedJson = JSON.stringify(newAttrs);
var newJson = JSON.parse(stringifiedJson);
assert(newJson._attrs.val === "test");