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
|
|
|
|
2022-08-27 09:27:07 +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
|
|
|
});
|