2017-03-13 00:02:56 +00:00
|
|
|
import { assert } from "chai";
|
2017-03-12 23:32:02 +00:00
|
|
|
import { Drawing } from "../../../../docx/run/run-components/drawing";
|
|
|
|
import { Utility } from "../../../utility";
|
|
|
|
|
|
|
|
describe.only("Drawing", () => {
|
|
|
|
let currentBreak: Drawing;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
currentBreak = new Drawing("test.jpg");
|
|
|
|
});
|
|
|
|
|
|
|
|
describe("#constructor()", () => {
|
|
|
|
it("should create a Drawing with correct root key", () => {
|
|
|
|
const newJson = Utility.jsonify(currentBreak);
|
|
|
|
assert.equal(newJson.rootKey, "w:drawing");
|
2017-03-13 00:02:56 +00:00
|
|
|
console.log(JSON.stringify(newJson, null, 2));
|
2017-03-12 23:32:02 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|