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",
|
||||
},
|
||||
|
Reference in New Issue
Block a user