refactor (core) move draft handling into its own class
This commit is contained in:
parent
9e8db66c94
commit
8fea9a4beb
5 changed files with 232 additions and 205 deletions
|
@ -61,9 +61,7 @@ describe('Pattern', () => {
|
|||
const design = new Design({ parts: [test, you] })
|
||||
const pattern = new design({ only: ['you'] })
|
||||
pattern.draft()
|
||||
expect(pattern.setStores[0].logs.debug).to.include(
|
||||
'Part `test` is not needed. Skipping draft and setting hidden to `true`'
|
||||
)
|
||||
expect(pattern.setStores[0].logs.debug).to.include('Part `test` is not needed. Skipping part')
|
||||
})
|
||||
|
||||
it('Should return the initialized config', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue