wip(core): More tweaks to plugin discovery
This commit is contained in:
parent
3af542c592
commit
6ce5937fb9
2 changed files with 33 additions and 21 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue