2023-06-05 00:33:43 +01:00
|
|
|
import { describe, expect, it } from "vitest";
|
2018-06-08 16:03:04 +02:00
|
|
|
|
2022-06-26 23:26:42 +01:00
|
|
|
import { Formatter } from "@export/formatter";
|
2018-10-26 01:04:07 +01:00
|
|
|
|
2025-04-14 16:43:15 +05:30
|
|
|
import { createSimplePos } from "./simple-pos";
|
2018-06-08 16:03:04 +02:00
|
|
|
|
2025-04-14 16:43:15 +05:30
|
|
|
describe("createSimplePos", () => {
|
2018-06-08 16:03:04 +02:00
|
|
|
describe("#constructor()", () => {
|
|
|
|
it("should create a element with correct root key", () => {
|
2025-04-14 16:43:15 +05:30
|
|
|
const tree = new Formatter().format(createSimplePos());
|
2019-06-26 22:12:18 +01:00
|
|
|
expect(tree).to.deep.equal({
|
|
|
|
"wp:simplePos": {
|
|
|
|
_attr: {
|
|
|
|
x: 0,
|
|
|
|
y: 0,
|
|
|
|
},
|
|
|
|
},
|
2018-06-08 16:03:04 +02:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|