added different types of underline
This commit is contained in:
@ -10,7 +10,7 @@ function jsonify(obj: Object) {
|
||||
return JSON.parse(stringifiedJson);
|
||||
}
|
||||
|
||||
describe.only("Run", () => {
|
||||
describe("Run", () => {
|
||||
let run: Run;
|
||||
|
||||
beforeEach(() => {
|
||||
|
37
ts/tests/docx/run/underlineTests.ts
Normal file
37
ts/tests/docx/run/underlineTests.ts
Normal file
@ -0,0 +1,37 @@
|
||||
import * as u from "../../../docx/run/underline";
|
||||
import {TextRun} from "../../../docx/run/text-run";
|
||||
import {assert} from "chai";
|
||||
|
||||
function jsonify(obj: Object) {
|
||||
let stringifiedJson = JSON.stringify(obj);
|
||||
return JSON.parse(stringifiedJson);
|
||||
}
|
||||
|
||||
describe.only("Underline", () => {
|
||||
|
||||
describe("#constructor()", () => {
|
||||
|
||||
it("should create a new Underline object", () => {
|
||||
let underline = new u.Underline();
|
||||
let newJson = jsonify(underline);
|
||||
assert.equal(newJson.rootKey, "w:u");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe.only("Underline", () => {
|
||||
|
||||
describe("#constructor()", () => {
|
||||
it("should create a new Underline object", () => {
|
||||
let underline = new u.DashDotDotHeavyUnderline();
|
||||
let newJson = jsonify(underline);
|
||||
assert.equal(newJson.rootKey, "w:u");
|
||||
});
|
||||
|
||||
it("should put value in attribute", () => {
|
||||
let underline = new u.DashDotDotHeavyUnderline();
|
||||
let newJson = jsonify(underline);
|
||||
assert.equal(newJson.rootKey, "w:u");
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user