From 91a757619e4ad38cba4d876083f556854c8daeb3 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Sat, 1 Apr 2017 12:30:27 +0100 Subject: [PATCH] fixed unit tests --- ts/tests/docx/run/run-components/drawingTests.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ts/tests/docx/run/run-components/drawingTests.ts b/ts/tests/docx/run/run-components/drawingTests.ts index 20215a0931..8679bcb982 100644 --- a/ts/tests/docx/run/run-components/drawingTests.ts +++ b/ts/tests/docx/run/run-components/drawingTests.ts @@ -1,12 +1,19 @@ import { assert } from "chai"; +import * as fs from "fs"; import { Drawing } from "../../../../docx/run/run-components/drawing"; import { Utility } from "../../../utility"; -describe.only("Drawing", () => { +describe("Drawing", () => { let currentBreak: Drawing; 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()", () => {