2020-10-10 13:41:26 +01:00
|
|
|
import { expect } from "chai";
|
|
|
|
|
2022-06-26 23:26:42 +01:00
|
|
|
import { Formatter } from "@export/formatter";
|
2020-10-10 13:41:26 +01:00
|
|
|
|
|
|
|
import { MathSuperScriptHide } from "./math-super-script-hide";
|
|
|
|
|
|
|
|
describe("MathSuperScriptHide", () => {
|
|
|
|
describe("#constructor()", () => {
|
|
|
|
it("should create a MathSuperScriptHide with correct root key", () => {
|
|
|
|
const mathSuperScriptHide = new MathSuperScriptHide();
|
|
|
|
|
|
|
|
const tree = new Formatter().format(mathSuperScriptHide);
|
|
|
|
expect(tree).to.deep.equal({
|
|
|
|
"m:supHide": {
|
|
|
|
_attr: {
|
|
|
|
"m:val": 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|