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

19 lines
658 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 { createMathSubSuperScriptProperties } from "./math-sub-super-script-function-properties";
2020-10-10 13:41:26 +01:00
describe("createMathSuperScriptProperties", () => {
2020-10-10 13:41:26 +01:00
describe("#constructor()", () => {
it("should create a MathSubSuperScriptProperties with correct root key", () => {
const mathSubSuperScriptProperties = createMathSubSuperScriptProperties();
2020-10-10 13:41:26 +01:00
const tree = new Formatter().format(mathSubSuperScriptProperties);
expect(tree).to.deep.equal({
"m:sSubSupPr": {},
});
});
});
});