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

17 lines
468 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-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"],
});
});
});
});