Files
docx-js/ts/tests/localPackerTest.ts
2016-04-05 06:03:04 +01:00

29 lines
890 B
TypeScript

/// <reference path="../typings/mocha/mocha.d.ts" />
/// <reference path="../typings/chai/chai.d.ts" />
/// <reference path="../typings/archiver/archiver.d.ts" />
/// <reference path="../typings/xml/xml.d.ts" />
import {LocalPacker} from "../export/packer/local";
import {assert} from "chai";
import {Document} from "../docx/document"
import {Properties} from "../properties"
import {DefaultStyle} from "../style/default"
describe.only("Packer", () => {
var packer: LocalPacker;
beforeEach(() => {
var document = new Document();
var properties = new Properties({
title: "test document"
});
packer = new LocalPacker(document, DefaultStyle(), properties, "build/tests/test.zip");
});
describe('#pack()', () => {
it("should create a standard docx file", () => {
packer.pack();
});
});
});