Files
docx-js/ts/tests/localPackerTest.ts

29 lines
890 B
TypeScript
Raw Normal View History

2016-03-31 18:03:16 +01:00
/// <reference path="../typings/mocha/mocha.d.ts" />
/// <reference path="../typings/chai/chai.d.ts" />
2016-03-31 18:07:22 +01:00
/// <reference path="../typings/archiver/archiver.d.ts" />
2016-04-05 01:49:12 +01:00
/// <reference path="../typings/xml/xml.d.ts" />
2016-03-31 18:07:22 +01:00
2016-03-31 18:03:16 +01:00
import {LocalPacker} from "../export/packer/local";
import {assert} from "chai";
import {Document} from "../docx/document"
2016-04-05 01:49:12 +01:00
import {Properties} from "../properties"
2016-04-05 06:03:04 +01:00
import {DefaultStyle} from "../style/default"
2016-03-31 18:03:16 +01:00
2016-04-05 01:49:12 +01:00
describe.only("Packer", () => {
2016-03-31 18:03:16 +01:00
var packer: LocalPacker;
beforeEach(() => {
var document = new Document();
2016-04-05 01:49:12 +01:00
var properties = new Properties({
title: "test document"
});
2016-04-05 06:03:04 +01:00
packer = new LocalPacker(document, DefaultStyle(), properties, "build/tests/test.zip");
2016-03-31 18:03:16 +01:00
});
describe('#pack()', () => {
it("should create a standard docx file", () => {
packer.pack();
});
});
});