1
0
Fork 0
freesewing/packages/core/tests/hooks.test.mjs
2022-08-27 09:27:07 +02:00

22 lines
462 B
JavaScript

import chai from "chai"
import { Pattern } from "./dist/index.mjs"
const expect = chai.expect
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);
});
});