1
0
Fork 0

wip(core): More tweaks to plugin discovery

This commit is contained in:
Joost De Cock 2022-09-28 16:47:45 +02:00
parent 3af542c592
commit 6ce5937fb9
2 changed files with 33 additions and 21 deletions

View file

@ -702,6 +702,9 @@ describe('Pattern', () => {
it('Should check whether created parts get the pattern context', () => {
let partContext
const plugin = {
name: 'example',
}
const part = {
name: 'test',
draft: ({ Point, paths, Path, part, context }) => {
@ -710,6 +713,7 @@ describe('Pattern', () => {
return part
},
plugins: [plugin],
}
const Pattern = new Design({ parts: [part], data: { name: 'test', version: '1' } })
const pattern = new Pattern()