1
0
Fork 0

refactor (core) move plugin and hook handling to its own class

This commit is contained in:
Enoch Riese 2023-04-16 23:59:21 -04:00
parent e59341effa
commit c5baaab234
5 changed files with 225 additions and 184 deletions

View file

@ -90,8 +90,8 @@ describe('Pattern', () => {
pattern.use(plugin)
pattern.use({ plugin })
pattern.use({ plugin })
expect(Object.keys(pattern.plugins).length).to.equal(1)
expect(Object.keys(pattern.plugins)[0]).to.equal('test')
expect(Object.keys(pattern.plugins.plugins)).to.have.lengthOf(1)
expect(Object.keys(pattern.plugins.plugins)[0]).to.equal('test')
})
it('Should log an error of added parts do not have a draft method', () => {