Move tests to respective folders as .spec

This is to keep to standards
This commit is contained in:
Dolan
2017-09-17 00:00:41 +01:00
parent 5ae02c3342
commit 72e89cfc3c
32 changed files with 103 additions and 72 deletions

View File

@ -0,0 +1,24 @@
import { assert } from "chai";
import { Utility } from "../../tests/utility";
import { XmlComponent } from "./";
class TestComponent extends XmlComponent {
}
describe("XmlComponent", () => {
let xmlComponent: TestComponent;
beforeEach(() => {
xmlComponent = new TestComponent("w:test");
});
describe("#constructor()", () => {
it("should create an Xml Component which has the correct rootKey", () => {
const newJson = Utility.jsonify(xmlComponent);
assert.equal(newJson.rootKey, "w:test");
});
});
});