creates working docx file

This commit is contained in:
Dolan Miu
2016-04-05 22:11:21 +01:00
parent a4b6ea562f
commit 7d8bac54dc
2 changed files with 18 additions and 6 deletions

View File

@ -8,12 +8,15 @@ import {assert} from "chai";
import {Document} from "../docx/document"
import {Properties} from "../properties"
import {DefaultStyle} from "../style/default"
import {Paragraph} from "../docx/paragraph"
describe.only("Packer", () => {
var packer: LocalPacker;
beforeEach(() => {
var document = new Document();
var paragraph = new Paragraph("test text");
document.addParagraph(paragraph);
var properties = new Properties({
title: "test document"
});
@ -22,8 +25,9 @@ describe.only("Packer", () => {
describe('#pack()', () => {
it("should create a standard docx file", () => {
it("should create a standard docx file", (done) => {
packer.pack();
setTimeout(done, 3000);
});
});
});