diff --git a/src/file/numbering/numbering.spec.ts b/src/file/numbering/numbering.spec.ts index 2240fb4108..f483e723f3 100644 --- a/src/file/numbering/numbering.spec.ts +++ b/src/file/numbering/numbering.spec.ts @@ -330,7 +330,7 @@ describe("AbstractNumbering", () => { const level = abstractNumbering.createLevel(0, "lowerRoman", "%0.").highlight("005599"); const tree = new Formatter().format(level); expect(tree["w:lvl"]).to.include({ - "w:rPr": [{ "w:highlight ": { _attr: { "w:val": "005599" } } }], + "w:rPr": [{ "w:highlight": { _attr: { "w:val": "005599" } } }], }); }); @@ -339,7 +339,7 @@ describe("AbstractNumbering", () => { const level = abstractNumbering.createLevel(0, "lowerRoman", "%0.").shadow("pct10", "00FFFF", "FF0000"); const tree = new Formatter().format(level); expect(tree["w:lvl"]).to.include({ - "w:rPr": [{ "w:shd ": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }], + "w:rPr": [{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }], }); }); diff --git a/src/file/paragraph/run/run.spec.ts b/src/file/paragraph/run/run.spec.ts index eb4b523976..0a36d1dbe5 100644 --- a/src/file/paragraph/run/run.spec.ts +++ b/src/file/paragraph/run/run.spec.ts @@ -123,7 +123,7 @@ describe("Run", () => { "w:r": [ { "w:rPr": [ - { "w:highlight ": { _attr: { "w:val": "005599" } } }, + { "w:highlight": { _attr: { "w:val": "005599" } } }, { "w:highlightCs": { _attr: { @@ -146,7 +146,7 @@ describe("Run", () => { "w:r": [ { "w:rPr": [ - { "w:shd ": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }, + { "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }, { "w:shdCs": { _attr: { diff --git a/src/file/styles/style/paragraph-style.spec.ts b/src/file/styles/style/paragraph-style.spec.ts index ac39460861..4c6d1a402c 100644 --- a/src/file/styles/style/paragraph-style.spec.ts +++ b/src/file/styles/style/paragraph-style.spec.ts @@ -382,7 +382,7 @@ describe("ParagraphStyle", () => { "w:style": [ { _attr: { "w:type": "paragraph", "w:styleId": "myStyleId" } }, { - "w:rPr": [{ "w:highlight ": { _attr: { "w:val": "005599" } } }], + "w:rPr": [{ "w:highlight": { _attr: { "w:val": "005599" } } }], }, ], }); @@ -395,7 +395,7 @@ describe("ParagraphStyle", () => { "w:style": [ { _attr: { "w:type": "paragraph", "w:styleId": "myStyleId" } }, { - "w:rPr": [{ "w:shd ": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }], + "w:rPr": [{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }], }, ], });