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

23 lines
462 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
describe('Hooks', () => {
it("Should contain all hooks", () => {
const pattern = new Pattern();
const h = pattern.hooks;
const test = {
preDraft: [],
postDraft: [],
postLayout: [],
preSample: [],
postSample: [],
preRender: [],
postRender: [],
insertText: [],
};
expect(h).to.eql(test);
});
2018-08-12 12:37:30 +02:00
});