Add test
This commit is contained in:
@ -218,5 +218,25 @@ describe("Anchor", () => {
|
|||||||
const textWrap = newJson.root[6];
|
const textWrap = newJson.root[6];
|
||||||
assert.equal(textWrap.rootKey, "wp:wrapTopAndBottom");
|
assert.equal(textWrap.rootKey, "wp:wrapTopAndBottom");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should create a Drawing with a certain z-index", () => {
|
||||||
|
anchor = createAnchor({
|
||||||
|
floating: {
|
||||||
|
verticalPosition: {
|
||||||
|
offset: 0,
|
||||||
|
},
|
||||||
|
horizontalPosition: {
|
||||||
|
offset: 0,
|
||||||
|
},
|
||||||
|
zIndex: 120,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
const newJson = Utility.jsonify(anchor);
|
||||||
|
const anchorAttributes = newJson.root[0].root;
|
||||||
|
|
||||||
|
assert.include(anchorAttributes, {
|
||||||
|
relativeHeight: 120,
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user