Files
docx-js/src/file/paragraph/math/script/sub-script/math-sub-script-function-properties.spec.ts
Dolan 4d1a351649 Documentation and Refactoring (#3028)
* Documentation and Refactoring

* Documentation and Refactoring

* Fix lint issues

* Convert components to Builder style

---------

Co-authored-by: Dolan Miu <dmiu@bloomberg.net>
2025-04-14 16:43:15 +05:30

19 lines
622 B
TypeScript

import { describe, expect, it } from "vitest";
import { Formatter } from "@export/formatter";
import { createMathSubScriptProperties } from "./math-sub-script-function-properties";
describe("createMathSubScriptProperties", () => {
describe("#constructor()", () => {
it("should create a MathSubScriptProperties with correct root key", () => {
const mathSubScriptProperties = createMathSubScriptProperties();
const tree = new Formatter().format(mathSubScriptProperties);
expect(tree).to.deep.equal({
"m:sSubPr": {},
});
});
});
});