2018-06-08 16:03:04 +02:00
|
|
|
import { assert } from "chai";
|
|
|
|
|
|
|
|
import { Utility } from "../../../tests/utility";
|
2018-08-09 23:29:40 +01:00
|
|
|
import { SimplePos } from "./simple-pos";
|
2018-06-08 16:03:04 +02:00
|
|
|
|
|
|
|
describe("SimplePos", () => {
|
|
|
|
describe("#constructor()", () => {
|
|
|
|
it("should create a element with correct root key", () => {
|
|
|
|
const newJson = Utility.jsonify(new SimplePos());
|
|
|
|
assert.equal(newJson.rootKey, "wp:simplePos");
|
|
|
|
assert.include(newJson.root[0].root, {
|
|
|
|
x: 0,
|
|
|
|
y: 0,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|