further clean up border code; update paragraph borders to use shared type; BREAKING: paragraph border value attr renamed to style, to match other usages of borders

This commit is contained in:
Tom Hunkapiller
2021-05-23 08:00:49 +03:00
parent 54ab55b92c
commit 08bd2744b6
18 changed files with 100 additions and 115 deletions

View File

@ -2,7 +2,9 @@ import { assert, expect } from "chai";
import { SinonStub, stub } from "sinon";
import * as convenienceFunctions from "convenience-functions";
import { Formatter } from "export/formatter";
import { BorderStyle } from "file/border";
import { EMPTY_OBJECT } from "file/xml-components";
import { IViewWrapper } from "../document-wrapper";
@ -467,13 +469,13 @@ describe("Paragraph", () => {
left: {
color: "auto",
space: 1,
value: "single",
style: BorderStyle.SINGLE,
size: 6,
},
right: {
color: "auto",
space: 1,
value: "single",
style: BorderStyle.SINGLE,
size: 6,
},
},