chore(core): Port tests to ESM
This commit is contained in:
parent
8af23b9b94
commit
547d11569d
14 changed files with 77 additions and 48 deletions
|
@ -1,18 +0,0 @@
|
|||
let expect = require("chai").expect;
|
||||
let freesewing = require("../dist/index.js");
|
||||
|
||||
it("Should contain all hooks", () => {
|
||||
let pattern = new freesewing.Pattern();
|
||||
let h = pattern.hooks;
|
||||
let test = {
|
||||
preDraft: [],
|
||||
postDraft: [],
|
||||
postLayout: [],
|
||||
preSample: [],
|
||||
postSample: [],
|
||||
preRender: [],
|
||||
postRender: [],
|
||||
insertText: [],
|
||||
};
|
||||
expect(h).to.eql(test);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue