Files
docx-js/src/file/drawing/floating/simple-pos.spec.ts

22 lines
571 B
TypeScript
Raw Normal View History

2019-06-26 22:12:18 +01:00
import { expect } from "chai";
2019-06-26 22:12:18 +01:00
import { Formatter } from "export/formatter";
2018-10-26 01:04:07 +01:00
2018-08-09 23:29:40 +01:00
import { SimplePos } from "./simple-pos";
describe("SimplePos", () => {
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 SimplePos());
expect(tree).to.deep.equal({
"wp:simplePos": {
_attr: {
x: 0,
y: 0,
},
},
});
});
});
});