Breaking change. Make all italic to italics.
This commit is contained in:
@ -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");
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user