fixed unit tests
This commit is contained in:
@ -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()", () => {
|
||||||
|
Reference in New Issue
Block a user