fix prettier issues
This commit is contained in:
@ -623,29 +623,7 @@ describe("AbstractNumbering", () => {
|
|||||||
fill: "00FFFF",
|
fill: "00FFFF",
|
||||||
color: "FF0000",
|
color: "FF0000",
|
||||||
},
|
},
|
||||||
expected: [
|
expected: [{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }],
|
||||||
{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
shading: {
|
|
||||||
type: ShadingType.PERCENT_10,
|
|
||||||
fill: "00FFFF",
|
|
||||||
color: "FF0000",
|
|
||||||
},
|
|
||||||
expected: [
|
|
||||||
{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
shading: {
|
|
||||||
type: ShadingType.PERCENT_10,
|
|
||||||
fill: "00FFFF",
|
|
||||||
color: "FF0000",
|
|
||||||
},
|
|
||||||
expected: [
|
|
||||||
{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
shading: {
|
shading: {
|
||||||
@ -661,9 +639,23 @@ describe("AbstractNumbering", () => {
|
|||||||
fill: "00FFFF",
|
fill: "00FFFF",
|
||||||
color: "FF0000",
|
color: "FF0000",
|
||||||
},
|
},
|
||||||
expected: [
|
expected: [{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }],
|
||||||
{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } },
|
},
|
||||||
],
|
{
|
||||||
|
shading: {
|
||||||
|
type: ShadingType.PERCENT_10,
|
||||||
|
fill: "00FFFF",
|
||||||
|
color: "FF0000",
|
||||||
|
},
|
||||||
|
expected: [{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
shading: {
|
||||||
|
type: ShadingType.PERCENT_10,
|
||||||
|
fill: "00FFFF",
|
||||||
|
color: "FF0000",
|
||||||
|
},
|
||||||
|
expected: [{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
shadingTests.forEach(({ shadow, shading, expected }) => {
|
shadingTests.forEach(({ shadow, shading, expected }) => {
|
||||||
|
@ -243,9 +243,7 @@ describe("Run", () => {
|
|||||||
expect(tree).to.deep.equal({
|
expect(tree).to.deep.equal({
|
||||||
"w:r": [
|
"w:r": [
|
||||||
{
|
{
|
||||||
"w:rPr": [
|
"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" } } },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
@ -782,29 +782,7 @@ describe("CharacterStyle", () => {
|
|||||||
fill: "00FFFF",
|
fill: "00FFFF",
|
||||||
color: "FF0000",
|
color: "FF0000",
|
||||||
},
|
},
|
||||||
expected: [
|
expected: [{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }],
|
||||||
{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
shading: {
|
|
||||||
type: ShadingType.PERCENT_10,
|
|
||||||
fill: "00FFFF",
|
|
||||||
color: "FF0000",
|
|
||||||
},
|
|
||||||
expected: [
|
|
||||||
{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
shading: {
|
|
||||||
type: ShadingType.PERCENT_10,
|
|
||||||
fill: "00FFFF",
|
|
||||||
color: "FF0000",
|
|
||||||
},
|
|
||||||
expected: [
|
|
||||||
{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
shading: {
|
shading: {
|
||||||
@ -820,9 +798,23 @@ describe("CharacterStyle", () => {
|
|||||||
fill: "00FFFF",
|
fill: "00FFFF",
|
||||||
color: "FF0000",
|
color: "FF0000",
|
||||||
},
|
},
|
||||||
expected: [
|
expected: [{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }],
|
||||||
{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } },
|
},
|
||||||
],
|
{
|
||||||
|
shading: {
|
||||||
|
type: ShadingType.PERCENT_10,
|
||||||
|
fill: "00FFFF",
|
||||||
|
color: "FF0000",
|
||||||
|
},
|
||||||
|
expected: [{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
shading: {
|
||||||
|
type: ShadingType.PERCENT_10,
|
||||||
|
fill: "00FFFF",
|
||||||
|
color: "FF0000",
|
||||||
|
},
|
||||||
|
expected: [{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
shadingTests.forEach(({ shadow, shading, expected }) => {
|
shadingTests.forEach(({ shadow, shading, expected }) => {
|
||||||
|
@ -658,29 +658,7 @@ describe("ParagraphStyle", () => {
|
|||||||
fill: "00FFFF",
|
fill: "00FFFF",
|
||||||
color: "FF0000",
|
color: "FF0000",
|
||||||
},
|
},
|
||||||
expected: [
|
expected: [{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }],
|
||||||
{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
shading: {
|
|
||||||
type: ShadingType.PERCENT_10,
|
|
||||||
fill: "00FFFF",
|
|
||||||
color: "FF0000",
|
|
||||||
},
|
|
||||||
expected: [
|
|
||||||
{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
shading: {
|
|
||||||
type: ShadingType.PERCENT_10,
|
|
||||||
fill: "00FFFF",
|
|
||||||
color: "FF0000",
|
|
||||||
},
|
|
||||||
expected: [
|
|
||||||
{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
shading: {
|
shading: {
|
||||||
@ -696,9 +674,23 @@ describe("ParagraphStyle", () => {
|
|||||||
fill: "00FFFF",
|
fill: "00FFFF",
|
||||||
color: "FF0000",
|
color: "FF0000",
|
||||||
},
|
},
|
||||||
expected: [
|
expected: [{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }],
|
||||||
{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } },
|
},
|
||||||
],
|
{
|
||||||
|
shading: {
|
||||||
|
type: ShadingType.PERCENT_10,
|
||||||
|
fill: "00FFFF",
|
||||||
|
color: "FF0000",
|
||||||
|
},
|
||||||
|
expected: [{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
shading: {
|
||||||
|
type: ShadingType.PERCENT_10,
|
||||||
|
fill: "00FFFF",
|
||||||
|
color: "FF0000",
|
||||||
|
},
|
||||||
|
expected: [{ "w:shd": { _attr: { "w:val": "pct10", "w:fill": "00FFFF", "w:color": "FF0000" } } }],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
shadingTests.forEach(({ shadow, shading, expected }) => {
|
shadingTests.forEach(({ shadow, shading, expected }) => {
|
||||||
|
Reference in New Issue
Block a user