#1507 - Add scale for run

This commit is contained in:
Dolan
2022-11-03 00:30:16 +00:00
parent b9ceabcc07
commit 1b06fc71cf
15 changed files with 110 additions and 75 deletions

View File

@ -556,5 +556,29 @@ describe("Run", () => {
],
});
});
describe("#scale", () => {
it("should correctly set the border", () => {
const run = new Run({
scale: 200,
});
const tree = new Formatter().format(run);
expect(tree).to.deep.equal({
"w:r": [
{
"w:rPr": [
{
"w:w": {
_attr: {
"w:val": 200,
},
},
},
],
},
],
});
});
});
});
});