Turn back on no-null-keyword. Use empty object instead of null
to signal to the xml
library that an empty element should be produced. Update the related tests.
Related to #306
This commit is contained in:
@ -11,7 +11,7 @@ describe("TableRow", () => {
|
||||
const tableRow = new TableRow([]);
|
||||
const tree = new Formatter().format(tableRow);
|
||||
expect(tree).to.deep.equal({
|
||||
"w:tr": null,
|
||||
"w:tr": {},
|
||||
});
|
||||
});
|
||||
|
||||
@ -23,7 +23,7 @@ describe("TableRow", () => {
|
||||
{
|
||||
"w:tc": [
|
||||
{
|
||||
"w:p": null,
|
||||
"w:p": {},
|
||||
},
|
||||
],
|
||||
},
|
||||
|
Reference in New Issue
Block a user