Fix tests

This commit is contained in:
Forman
2019-08-06 13:39:05 +03:00
parent fa710d1ba6
commit ebc7dca949
3 changed files with 6 additions and 6 deletions

View File

@ -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" } } }],
});
});

View File

@ -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: {

View File

@ -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" } } }],
},
],
});