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:
@ -17,7 +17,7 @@ describe("GridCol", () => {
|
||||
it("does not set a width attribute if not given", () => {
|
||||
const grid = new GridCol();
|
||||
const tree = new Formatter().format(grid);
|
||||
expect(tree).to.deep.equal({ "w:gridCol": null });
|
||||
expect(tree).to.deep.equal({ "w:gridCol": {} });
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user