Files
docx-js/src/file/paragraph/math/n-ary/math-limit-location.spec.ts

23 lines
684 B
TypeScript
Raw Normal View History

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