17 lines
468 B
TypeScript
17 lines
468 B
TypeScript
import { expect } from "chai";
|
|
|
|
import { Formatter } from "export/formatter";
|
|
|
|
import { PositionOffset } from "./position-offset";
|
|
|
|
describe("PositionOffset", () => {
|
|
describe("#constructor()", () => {
|
|
it("should create a element with correct root key", () => {
|
|
const tree = new Formatter().format(new PositionOffset(50));
|
|
expect(tree).to.deep.equal({
|
|
"wp:posOffset": ["50"],
|
|
});
|
|
});
|
|
});
|
|
});
|