Breaking change. Make all italic to italics.

This commit is contained in:
Dolan Miu
2018-11-18 15:22:23 +00:00
parent 2677c4a4ec
commit 4e671eb512
6 changed files with 8 additions and 8 deletions

View File

@ -21,9 +21,9 @@ describe("Run", () => {
});
});
describe("#italic()", () => {
describe("#italics()", () => {
it("it should add italics to the properties", () => {
run.italic();
run.italics();
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");

View File

@ -39,7 +39,7 @@ export class Run extends XmlComponent {
return this;
}
public italic(): Run {
public italics(): Run {
this.properties.push(new Italics());
this.properties.push(new ItalicsComplexScript());
return this;