Add tests
This commit is contained in:
26
src/import-dotx/import-dotx.spec.ts
Normal file
26
src/import-dotx/import-dotx.spec.ts
Normal file
@ -0,0 +1,26 @@
|
||||
import { expect } from "chai";
|
||||
|
||||
import { ImportDotx } from "./import-dotx";
|
||||
|
||||
describe("ImportDotx", () => {
|
||||
describe("#constructor", () => {
|
||||
it("should create", () => {
|
||||
const file = new ImportDotx();
|
||||
|
||||
expect(file).to.deep.equal({ currentRelationshipId: 1 });
|
||||
});
|
||||
});
|
||||
|
||||
// describe("#extract", () => {
|
||||
// it("should create", async () => {
|
||||
// const file = new ImportDotx();
|
||||
// const filePath = "./demo/dotx/template.dotx";
|
||||
|
||||
// const templateDocument = await file.extract(data);
|
||||
|
||||
// await file.extract(data);
|
||||
|
||||
// expect(templateDocument).to.be.equal({ currentRelationshipId: 1 });
|
||||
// });
|
||||
// });
|
||||
});
|
Reference in New Issue
Block a user