linting
This commit is contained in:
@ -1,10 +1,6 @@
|
||||
import { XmlComponent } from "../../../docx/xml-components";
|
||||
import { assert } from "chai";
|
||||
|
||||
function jsonify(obj: Object) {
|
||||
let stringifiedJson = JSON.stringify(obj);
|
||||
return JSON.parse(stringifiedJson);
|
||||
}
|
||||
import { XmlComponent } from "../../../docx/xml-components";
|
||||
import { Utility } from "../../utility";
|
||||
|
||||
class TestComponent extends XmlComponent {
|
||||
|
||||
@ -20,7 +16,7 @@ describe("XmlComponent", () => {
|
||||
describe("#constructor()", () => {
|
||||
|
||||
it("should create an Xml Component which has the correct rootKey", () => {
|
||||
let newJson = jsonify(xmlComponent);
|
||||
const newJson = Utility.jsonify(xmlComponent);
|
||||
assert.equal(newJson.rootKey, "w:test");
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user