Add tests

This commit is contained in:
Dolan
2021-03-13 20:23:15 +00:00
parent cc9a966f53
commit 4bc0421055
6 changed files with 77 additions and 11 deletions

View File

@ -146,7 +146,7 @@ describe("Run", () => {
});
describe("#doubleStrike()", () => {
it("it should add caps to the properties", () => {
it("it should add double strike to the properties", () => {
const run = new Run({
doubleStrike: true,
});
@ -157,6 +157,30 @@ describe("Run", () => {
});
});
describe("#emboss()", () => {
it("it should add emboss to the properties", () => {
const run = new Run({
emboss: true,
});
const tree = new Formatter().format(run);
expect(tree).to.deep.equal({
"w:r": [{ "w:rPr": [{ "w:emboss": { _attr: { "w:val": true } } }] }],
});
});
});
describe("#imprint()", () => {
it("it should add imprint to the properties", () => {
const run = new Run({
imprint: true,
});
const tree = new Formatter().format(run);
expect(tree).to.deep.equal({
"w:r": [{ "w:rPr": [{ "w:imprint": { _attr: { "w:val": true } } }] }],
});
});
});
describe("#subScript()", () => {
it("it should add subScript to the properties", () => {
const run = new Run({