refactored local packer

This commit is contained in:
Dolan Miu
2016-07-04 18:47:13 +01:00
parent bf80535c6f
commit 993a832f3e
3 changed files with 26 additions and 12 deletions

View File

@ -29,14 +29,14 @@ describe("Packer", () => {
lastModifiedBy: "Shan Fu"
});
stylesFactory = new DefaultStylesFactory();
packer = new LocalPacker(document, stylesFactory.newInstance(), properties, "build/tests/test.docx");
packer = new LocalPacker(document, stylesFactory.newInstance(), properties);
// packer = new LocalPacker(document, DefaultStyle(), properties, "build/tests/test.docx");
});
describe("#pack()", () => {
it("should create a standard docx file", function (done) {
this.timeout(99999999);
packer.pack();
packer.pack("build/tests/test.docx");
setTimeout(done, 1900);
});
});