change shading val -> type
This commit is contained in:
@ -17,7 +17,7 @@ describe("Shading", () => {
|
||||
});
|
||||
|
||||
it("should create with params", () => {
|
||||
const shading = new Shading({ val: ShadingType.PERCENT_40, color: "FF0000", fill: "555555" });
|
||||
const shading = new Shading({ type: ShadingType.PERCENT_40, color: "FF0000", fill: "555555" });
|
||||
const tree = new Formatter().format(shading);
|
||||
expect(tree).to.deep.equal({
|
||||
"w:shd": {
|
||||
|
Reference in New Issue
Block a user