fix: Tests for designs after core changes
This commit is contained in:
parent
960cd9ca13
commit
a5114804a4
1 changed files with 6 additions and 3 deletions
|
@ -21,11 +21,14 @@ export const testPatternDrafting = (Pattern, log = false) => {
|
|||
const doesItDraftAndRender = (pattern, log = false) => {
|
||||
try {
|
||||
pattern.draft().render()
|
||||
if (pattern.store.logs.error.length < 1) return true
|
||||
if (log) console.log(pattern.store.logs.error)
|
||||
if (log) console.log(pattern.stores[0].logs)
|
||||
if (pattern.stores[0].logs.error.length < 1) return true
|
||||
return false
|
||||
} catch (err) {
|
||||
if (log) console.log(err)
|
||||
if (log) {
|
||||
console.log(err)
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue