diff --git a/ts/tests/docx/run/underlineTests.ts b/ts/tests/docx/run/underlineTests.ts index fa5f6230db..e678390917 100644 --- a/ts/tests/docx/run/underlineTests.ts +++ b/ts/tests/docx/run/underlineTests.ts @@ -7,11 +7,11 @@ function jsonify(obj: Object) { return JSON.parse(stringifiedJson); } -describe.only("Underline", () => { +describe("Underline", () => { describe("#constructor()", () => { - it("should create a new Underline object", () => { + it("should create a new Underline object with u:u as the rootKey", () => { let underline = new u.Underline(); let newJson = jsonify(underline); assert.equal(newJson.rootKey, "w:u"); @@ -19,19 +19,184 @@ describe.only("Underline", () => { }); }); -describe.only("Underline", () => { +describe.only("DashDotDotHeavyUnderline", () => { describe("#constructor()", () => { - it("should create a new Underline object", () => { + it("should have u:u as the rootKey", () => { let underline = new u.DashDotDotHeavyUnderline(); let newJson = jsonify(underline); assert.equal(newJson.rootKey, "w:u"); }); - it("should put value in attribute", () => { + it("should put value in attribute", () => { let underline = new u.DashDotDotHeavyUnderline(); let newJson = jsonify(underline); - assert.equal(newJson.rootKey, "w:u"); + assert.equal(newJson.root[0].root.val, "dashDotDotHeavy"); }); }); }); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.DashDotHeavyUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "dashDotHeavy"); + }); + }); +}); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.DashLongHeavyUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "dashLongHeavy"); + }); + }); +}); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.DashLongUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "dashLong"); + }); + }); +}); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.DashUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "dash"); + }); + }); +}); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.DotDashUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "dotDash"); + }); + }); +}); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.DotDotDashUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "dotDotDash"); + }); + }); +}); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.DottedHeavyUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "dottedHeavy"); + }); + }); +}); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.DottedUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "dotted"); + }); + }); +}); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.DoubleUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "double"); + }); + }); +}); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.SingleUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "single"); + }); + }); +}); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.ThickUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "thick"); + }); + }); +}); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.WaveUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "wave"); + }); + }); +}); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.WavyDoubleUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "wavyDouble"); + }); + }); +}); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.WavyHeavyUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "wavyHeavy"); + }); + }); +}); + +describe.only("DashDotDotHeavyUnderline", () => { + + describe("#constructor()", () => { + it("should put value in attribute", () => { + let underline = new u.WordsUnderline(); + let newJson = jsonify(underline); + assert.equal(newJson.root[0].root.val, "words"); + }); + }); +}); \ No newline at end of file