Files
docx-js/src/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function-properties.spec.ts

19 lines
680 B
TypeScript
Raw Normal View History

2023-06-05 00:33:43 +01:00
import { describe, expect, it } from "vitest";
2020-10-10 13:41:26 +01:00
import { Formatter } from "@export/formatter";
import { createMathPreSubSuperScriptProperties } from "./math-pre-sub-super-script-function-properties";
2020-10-10 13:41:26 +01:00
describe("createMathPreSubSuperScriptProperties", () => {
2020-10-10 13:41:26 +01:00
describe("#constructor()", () => {
it("should create a MathPreSubSuperScriptProperties with correct root key", () => {
const mathPreSubSuperScriptProperties = createMathPreSubSuperScriptProperties();
2020-10-10 13:41:26 +01:00
const tree = new Formatter().format(mathPreSubSuperScriptProperties);
expect(tree).to.deep.equal({
"m:sPrePr": {},
});
});
});
});