add complex font support to bold and italic

This commit is contained in:
amitm02
2018-08-06 12:14:51 +03:00
parent ca8f331eec
commit f9c97a673e
3 changed files with 27 additions and 1 deletions

View File

@ -16,6 +16,7 @@ describe("Run", () => {
run.bold();
const newJson = Utility.jsonify(run);
assert.equal(newJson.root[0].root[0].rootKey, "w:b");
assert.equal(newJson.root[0].root[1].rootKey, "w:bCs");
});
});
@ -24,6 +25,7 @@ describe("Run", () => {
run.italic();
const newJson = Utility.jsonify(run);
assert.equal(newJson.root[0].root[0].rootKey, "w:i");
assert.equal(newJson.root[0].root[1].rootKey, "w:iCs");
});
});