fixed injection of document into packer

This commit is contained in:
Dolan Miu
2016-03-31 23:36:42 +01:00
parent b828d682d3
commit d0fb6f485d
5 changed files with 19 additions and 9 deletions

View File

@ -8,7 +8,7 @@ function jsonify(obj: Object) {
return JSON.parse(stringifiedJson);
}
describe('Body', () => {
describe.only('Body', () => {
var body: Body;
beforeEach(() => {
@ -16,6 +16,9 @@ describe('Body', () => {
});
describe('#constructor()', () => {
it("should create the correct xml components", () => {
console.log(body);
});
});
});

View File

@ -4,12 +4,14 @@
import {LocalPacker} from "../export/packer/local";
import {assert} from "chai";
import {Document} from "../docx/document"
describe.only('Packer', () => {
describe('Packer', () => {
var packer: LocalPacker;
beforeEach(() => {
packer = new LocalPacker("test.zip");
var document = new Document();
packer = new LocalPacker(document, "build/tests/test.zip");
});
describe('#pack()', () => {