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

26 lines
543 B
JavaScript
Raw Permalink Normal View History

import { expect } from 'chai'
import { Pattern } from '../src/index.mjs'
2022-08-25 11:47:54 +02:00
describe('Hooks', () => {
it('Should contain all hooks', () => {
const pattern = new Pattern()
expect(Object.keys(pattern.plugins.hooks)).to.eql([
'preInit',
'postInit',
'preDraft',
'preSetDraft',
'prePartDraft',
'postPartDraft',
'postSetDraft',
'postDraft',
'preSample',
'postSample',
'preRender',
'preLayout',
'postLayout',
'postRender',
'insertText',
])
})
})