# Conflicts: # src/file/paragraph/formatting/border.spec.ts # src/file/paragraph/links/outline-level.spec.ts # src/file/paragraph/run/run.spec.ts
24 lines
648 B
TypeScript
24 lines
648 B
TypeScript
import { expect } from "chai";
|
|
|
|
import { Formatter } from "export/formatter";
|
|
|
|
import { OutlineLevel } from "./outline-level";
|
|
|
|
describe("ParagraphOutlineLevel", () => {
|
|
let outlineLevel: OutlineLevel;
|
|
|
|
describe("#constructor()", () => {
|
|
it("should create an outlineLevel with given value", () => {
|
|
outlineLevel = new OutlineLevel(0);
|
|
const tree = new Formatter().format(outlineLevel);
|
|
expect(tree).to.deep.equal({
|
|
"w:outlineLvl": {
|
|
_attr: {
|
|
"w:val": 0,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
});
|
|
});
|