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

19 lines
636 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 { createMathSuperScriptProperties } from "./math-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 MathSuperScriptProperties with correct root key", () => {
const mathSuperScriptProperties = createMathSuperScriptProperties();
2020-10-10 13:41:26 +01:00
const tree = new Formatter().format(mathSuperScriptProperties);
expect(tree).to.deep.equal({
"m:sSupPr": {},
});
});
});
});