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

17 lines
485 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
2018-06-09 23:49:01 +01:00
import { PositionOffset } from "./position-offset";
describe("PositionOffset", () => {
describe("#constructor()", () => {
it("should create a element with correct root key", () => {
2019-06-26 22:12:18 +01:00
const tree = new Formatter().format(new PositionOffset(50));
expect(tree).to.deep.equal({
"wp:posOffset": ["50"],
});
});
});
});