got a little carried away with the purge! fixed failing errors

This commit is contained in:
felipe
2017-03-10 16:35:48 +01:00
parent 9d7573ed9c
commit 599be5bf2b

View File

@ -20,6 +20,7 @@ describe("Styles", () => {
describe("#createParagraphStyle", () => {
it("should create a new paragraph style and push it onto this collection", () => {
styles.createParagraphStyle("pStyleId");
const tree = new Formatter().format(styles)["w:styles"].filter((x) => !x._attr);
expect(tree).to.deep.equal([{
"w:style": [
@ -31,6 +32,7 @@ describe("Styles", () => {
});
it("should set the paragraph name if given", () => {
styles.createParagraphStyle("pStyleId", "Paragraph Style");
const tree = new Formatter().format(styles)["w:styles"].filter((x) => !x._attr);
expect(tree).to.deep.equal([{
"w:style": [