Files
docx-js/src/file/drawing/floating/position-offset.spec.ts

17 lines
499 B
TypeScript
Raw Normal View History

2023-06-05 00:33:43 +01:00
import { describe, expect, it } from "vitest";
import { Formatter } from "@export/formatter";
2018-10-26 01:04:07 +01:00
import { createPositionOffset } from "./position-offset";
describe("createPositionOffset", () => {
describe("#constructor()", () => {
it("should create a element with correct root key", () => {
const tree = new Formatter().format(createPositionOffset(50));
2019-06-26 22:12:18 +01:00
expect(tree).to.deep.equal({
"wp:posOffset": ["50"],
});
});
});
});