fixed unit tests

This commit is contained in:
Dolan Miu
2017-04-01 12:30:27 +01:00
parent f89049e4c1
commit 91a757619e

View File

@ -1,12 +1,19 @@
import { assert } from "chai"; import { assert } from "chai";
import * as fs from "fs";
import { Drawing } from "../../../../docx/run/run-components/drawing"; import { Drawing } from "../../../../docx/run/run-components/drawing";
import { Utility } from "../../../utility"; import { Utility } from "../../../utility";
describe.only("Drawing", () => { describe("Drawing", () => {
let currentBreak: Drawing; let currentBreak: Drawing;
beforeEach(() => { beforeEach(() => {
currentBreak = new Drawing("test.jpg"); const path = "./demo/penguins.jpg";
currentBreak = new Drawing({
fileName: "test.jpg",
referenceId: 1,
stream: fs.createReadStream(path),
path: path,
});
}); });
describe("#constructor()", () => { describe("#constructor()", () => {