1
0
Fork 0
freesewing/packages/core/tests/hooks.test.mjs

21 lines
396 B
JavaScript
Raw Normal View History

2022-08-25 11:47:54 +02:00
import chai from "chai"
import { Pattern } from "./dist/index.mjs"
const expect = chai.expect
2018-08-12 12:37:30 +02:00
it("Should contain all hooks", () => {
2022-08-25 11:47:54 +02:00
let pattern = new Pattern();
let h = pattern.hooks;
let test = {
preDraft: [],
postDraft: [],
postLayout: [],
preSample: [],
postSample: [],
preRender: [],
postRender: [],
insertText: [],
2018-08-12 12:37:30 +02:00
};
expect(h).to.eql(test);
2018-08-12 12:37:30 +02:00
});