added paragraph properties and style tests

This commit is contained in:
Dolan Miu
2016-05-09 13:12:28 +01:00
parent ea1390b86b
commit 1e91d63604
2 changed files with 29 additions and 0 deletions

22
ts/tests/stylesTest.ts Normal file
View File

@ -0,0 +1,22 @@
/// <reference path="../typings/mocha/mocha.d.ts" />
/// <reference path="../typings/chai/chai.d.ts" />
import {Styles} from "../styles";
import {assert} from "chai";
describe("Styles", () => {
var styles: Styles;
beforeEach(() => {
styles = new Styles();
});
describe('#constructor()', () => {
it("should not add val with empty constructor", () => {
var newAttrs = new Styles();
var stringifiedJson = JSON.stringify(newAttrs);
var newJson = JSON.parse(stringifiedJson);
assert.isUndefined(newJson.root.val);
});
});
});