2023-06-05 00:33:43 +01:00
|
|
|
import { describe, expect, it } from "vitest";
|
2019-08-20 20:40:40 +01:00
|
|
|
|
2022-06-26 23:26:42 +01:00
|
|
|
import { Formatter } from "@export/formatter";
|
2019-08-20 20:40:40 +01:00
|
|
|
|
|
|
|
import { MathLimitLocation } from "./math-limit-location";
|
|
|
|
|
|
|
|
describe("MathLimitLocation", () => {
|
|
|
|
describe("#constructor()", () => {
|
|
|
|
it("should create a MathLimitLocation with correct root key", () => {
|
|
|
|
const mathLimitLocation = new MathLimitLocation();
|
|
|
|
|
|
|
|
const tree = new Formatter().format(mathLimitLocation);
|
|
|
|
expect(tree).to.deep.equal({
|
|
|
|
"m:limLoc": {
|
|
|
|
_attr: {
|
|
|
|
"m:val": "undOvr",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|