📦 Renamed freesewing pkg to @freesewing/core
This commit is contained in:
parent
d249b0f1ae
commit
476f4b8088
36 changed files with 31 additions and 32 deletions
18
packages/core/tests/hooks.test.js
Normal file
18
packages/core/tests/hooks.test.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
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: [],
|
||||
preSample: [],
|
||||
postSample: [],
|
||||
preRender: [],
|
||||
postRender: [],
|
||||
insertText: [],
|
||||
debug: []
|
||||
};
|
||||
expect(h).to.eql(test);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue