* Documentation and Refactoring * Documentation and Refactoring * Fix lint issues * Convert components to Builder style --------- Co-authored-by: Dolan Miu <dmiu@bloomberg.net>
23 lines
691 B
TypeScript
23 lines
691 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { Formatter } from "@export/formatter";
|
|
|
|
import { createMathSuperScriptHide } from "./math-super-script-hide";
|
|
|
|
describe("createMathSuperScriptHide", () => {
|
|
describe("#constructor()", () => {
|
|
it("should create a MathSuperScriptHide with correct root key", () => {
|
|
const mathSuperScriptHide = createMathSuperScriptHide();
|
|
|
|
const tree = new Formatter().format(mathSuperScriptHide);
|
|
expect(tree).to.deep.equal({
|
|
"m:supHide": {
|
|
_attr: {
|
|
"m:val": 1,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
});
|
|
});
|