use hexColorValue in borders and underlines
This commit is contained in:
@ -73,7 +73,7 @@ describe("TableCellProperties", () => {
|
||||
borders: {
|
||||
top: {
|
||||
style: BorderStyle.DASH_DOT_STROKED,
|
||||
color: "red",
|
||||
color: "ff0000",
|
||||
size: 3,
|
||||
},
|
||||
},
|
||||
@ -82,7 +82,7 @@ describe("TableCellProperties", () => {
|
||||
const tree = new Formatter().format(properties);
|
||||
|
||||
expect(tree["w:tcPr"][0]).to.deep.equal({
|
||||
"w:tcBorders": [{ "w:top": { _attr: { "w:val": "dashDotStroked", "w:sz": 3, "w:color": "red" } } }],
|
||||
"w:tcBorders": [{ "w:top": { _attr: { "w:val": "dashDotStroked", "w:sz": 3, "w:color": "ff0000" } } }],
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -570,17 +570,17 @@ describe("TableCell", () => {
|
||||
top: {
|
||||
style: BorderStyle.DASH_DOT_STROKED,
|
||||
size: 3,
|
||||
color: "red",
|
||||
color: "FF0000",
|
||||
},
|
||||
bottom: {
|
||||
style: BorderStyle.DOUBLE,
|
||||
size: 3,
|
||||
color: "blue",
|
||||
color: "0000ff",
|
||||
},
|
||||
left: {
|
||||
style: BorderStyle.DASH_DOT_STROKED,
|
||||
size: 3,
|
||||
color: "green",
|
||||
color: "00ff00",
|
||||
},
|
||||
right: {
|
||||
style: BorderStyle.DASH_DOT_STROKED,
|
||||
@ -601,7 +601,7 @@ describe("TableCell", () => {
|
||||
{
|
||||
"w:top": {
|
||||
_attr: {
|
||||
"w:color": "red",
|
||||
"w:color": "FF0000",
|
||||
"w:sz": 3,
|
||||
"w:val": "dashDotStroked",
|
||||
},
|
||||
@ -610,7 +610,7 @@ describe("TableCell", () => {
|
||||
{
|
||||
"w:left": {
|
||||
_attr: {
|
||||
"w:color": "green",
|
||||
"w:color": "00ff00",
|
||||
"w:sz": 3,
|
||||
"w:val": "dashDotStroked",
|
||||
},
|
||||
@ -619,7 +619,7 @@ describe("TableCell", () => {
|
||||
{
|
||||
"w:bottom": {
|
||||
_attr: {
|
||||
"w:color": "blue",
|
||||
"w:color": "0000ff",
|
||||
"w:sz": 3,
|
||||
"w:val": "double",
|
||||
},
|
||||
@ -628,7 +628,7 @@ describe("TableCell", () => {
|
||||
{
|
||||
"w:right": {
|
||||
_attr: {
|
||||
"w:color": "#ff8000",
|
||||
"w:color": "ff8000",
|
||||
"w:sz": 3,
|
||||
"w:val": "dashDotStroked",
|
||||
},
|
||||
|
@ -79,7 +79,7 @@ describe("TableBorders", () => {
|
||||
top: {
|
||||
style: BorderStyle.DOUBLE,
|
||||
size: 1,
|
||||
color: "red",
|
||||
color: "FF0000",
|
||||
},
|
||||
});
|
||||
|
||||
@ -89,7 +89,7 @@ describe("TableBorders", () => {
|
||||
{
|
||||
"w:top": {
|
||||
_attr: {
|
||||
"w:color": "red",
|
||||
"w:color": "FF0000",
|
||||
"w:sz": 1,
|
||||
"w:val": "double",
|
||||
},
|
||||
@ -151,7 +151,7 @@ describe("TableBorders", () => {
|
||||
left: {
|
||||
style: BorderStyle.DOUBLE,
|
||||
size: 1,
|
||||
color: "red",
|
||||
color: "ff0000",
|
||||
},
|
||||
});
|
||||
const tree = new Formatter().format(tableBorders);
|
||||
@ -170,7 +170,7 @@ describe("TableBorders", () => {
|
||||
{
|
||||
"w:left": {
|
||||
_attr: {
|
||||
"w:color": "red",
|
||||
"w:color": "ff0000",
|
||||
"w:sz": 1,
|
||||
"w:val": "double",
|
||||
},
|
||||
@ -223,7 +223,7 @@ describe("TableBorders", () => {
|
||||
bottom: {
|
||||
style: BorderStyle.DOUBLE,
|
||||
size: 1,
|
||||
color: "red",
|
||||
color: "ff0000",
|
||||
},
|
||||
});
|
||||
const tree = new Formatter().format(tableBorders);
|
||||
@ -251,7 +251,7 @@ describe("TableBorders", () => {
|
||||
{
|
||||
"w:bottom": {
|
||||
_attr: {
|
||||
"w:color": "red",
|
||||
"w:color": "ff0000",
|
||||
"w:sz": 1,
|
||||
"w:val": "double",
|
||||
},
|
||||
@ -295,7 +295,7 @@ describe("TableBorders", () => {
|
||||
right: {
|
||||
style: BorderStyle.DOUBLE,
|
||||
size: 1,
|
||||
color: "red",
|
||||
color: "ff0000",
|
||||
},
|
||||
});
|
||||
const tree = new Formatter().format(tableBorders);
|
||||
@ -332,7 +332,7 @@ describe("TableBorders", () => {
|
||||
{
|
||||
"w:right": {
|
||||
_attr: {
|
||||
"w:color": "red",
|
||||
"w:color": "ff0000",
|
||||
"w:sz": 1,
|
||||
"w:val": "double",
|
||||
},
|
||||
@ -367,7 +367,7 @@ describe("TableBorders", () => {
|
||||
insideHorizontal: {
|
||||
style: BorderStyle.DOUBLE,
|
||||
size: 1,
|
||||
color: "red",
|
||||
color: "ff0000",
|
||||
},
|
||||
});
|
||||
const tree = new Formatter().format(tableBorders);
|
||||
@ -413,7 +413,7 @@ describe("TableBorders", () => {
|
||||
{
|
||||
"w:insideH": {
|
||||
_attr: {
|
||||
"w:color": "red",
|
||||
"w:color": "ff0000",
|
||||
"w:sz": 1,
|
||||
"w:val": "double",
|
||||
},
|
||||
@ -439,7 +439,7 @@ describe("TableBorders", () => {
|
||||
insideVertical: {
|
||||
style: BorderStyle.DOUBLE,
|
||||
size: 1,
|
||||
color: "red",
|
||||
color: "ff0000",
|
||||
},
|
||||
});
|
||||
const tree = new Formatter().format(tableBorders);
|
||||
@ -494,7 +494,7 @@ describe("TableBorders", () => {
|
||||
{
|
||||
"w:insideV": {
|
||||
_attr: {
|
||||
"w:color": "red",
|
||||
"w:color": "ff0000",
|
||||
"w:sz": 1,
|
||||
"w:val": "double",
|
||||
},
|
||||
|
Reference in New Issue
Block a user