Files
docx-js/src/file/paragraph/math/n-ary/math-super-script-hide.spec.ts

23 lines
691 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";
2020-10-10 13:41:26 +01:00
import { createMathSuperScriptHide } from "./math-super-script-hide";
2020-10-10 13:41:26 +01:00
describe("createMathSuperScriptHide", () => {
2020-10-10 13:41:26 +01:00
describe("#constructor()", () => {
it("should create a MathSuperScriptHide with correct root key", () => {
const mathSuperScriptHide = createMathSuperScriptHide();
2020-10-10 13:41:26 +01:00
const tree = new Formatter().format(mathSuperScriptHide);
expect(tree).to.deep.equal({
"m:supHide": {
_attr: {
"m:val": 1,
},
},
});
});
});
});