Move tests to respective folders as .spec
This is to keep to standards
This commit is contained in:
19
ts/docx/run/break.spec.ts
Normal file
19
ts/docx/run/break.spec.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import { assert } from "chai";
|
||||
|
||||
import { Utility } from "../../tests/utility";
|
||||
import { Break } from "./break";
|
||||
|
||||
describe("Break", () => {
|
||||
let currentBreak: Break;
|
||||
|
||||
beforeEach(() => {
|
||||
currentBreak = new Break();
|
||||
});
|
||||
|
||||
describe("#constructor()", () => {
|
||||
it("should create a Break with correct root key", () => {
|
||||
const newJson = Utility.jsonify(currentBreak);
|
||||
assert.equal(newJson.rootKey, "w:br");
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user