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

29 lines
591 B
JavaScript
Raw Normal View History

import chai from 'chai'
import { Pattern } from '../src/index.mjs'
2022-08-25 11:47:54 +02:00
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 = {
preInit: [],
postInit: [],
preDraft: [],
preSetDraft: [],
prePartDraft: [],
postPartDraft: [],
postSetDraft: [],
postDraft: [],
preSample: [],
postSample: [],
preRender: [],
postLayout: [],
postRender: [],
insertText: [],
}
expect(h).to.eql(test)
})
})