34 lines
875 B
TypeScript
34 lines
875 B
TypeScript
import { assert } from "chai";
|
|
import { DoubleStrike, Strike } from "../../../docx/run/formatting";
|
|
import { Utility } from "../../utility";
|
|
|
|
describe("Strike", () => {
|
|
let strike: Strike;
|
|
|
|
beforeEach(() => {
|
|
strike = new Strike();
|
|
});
|
|
|
|
describe("#constructor()", () => {
|
|
it("should create a Strike with correct root key", () => {
|
|
const newJson = Utility.jsonify(strike);
|
|
assert.equal(newJson.rootKey, "w:strike");
|
|
});
|
|
});
|
|
});
|
|
|
|
describe("DoubleStrike", () => {
|
|
let strike: DoubleStrike;
|
|
|
|
beforeEach(() => {
|
|
strike = new DoubleStrike();
|
|
});
|
|
|
|
describe("#constructor()", () => {
|
|
it("should create a Double Strike with correct root key", () => {
|
|
const newJson = Utility.jsonify(strike);
|
|
assert.equal(newJson.rootKey, "w:dstrike");
|
|
});
|
|
});
|
|
});
|