1
0
Fork 0

refactor (core) move draft handling into its own class

This commit is contained in:
Enoch Riese 2023-04-17 19:45:00 -04:00
parent 9e8db66c94
commit 8fea9a4beb
5 changed files with 232 additions and 205 deletions

View file

@ -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', () => {