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();
|
2018-12-09 14:17:46 +01:00
|
|
|
let h = pattern.hooks;
|
|
|
|
let test = {
|
|
|
|
preDraft: [],
|
|
|
|
postDraft: [],
|
2022-03-13 15:01:28 +01:00
|
|
|
postLayout: [],
|
2018-12-09 14:17:46 +01:00
|
|
|
preSample: [],
|
|
|
|
postSample: [],
|
|
|
|
preRender: [],
|
|
|
|
postRender: [],
|
|
|
|
insertText: [],
|
2018-08-12 12:37:30 +02:00
|
|
|
};
|
2018-12-09 14:17:46 +01:00
|
|
|
expect(h).to.eql(test);
|
2018-08-12 12:37:30 +02:00
|
|
|
});
|