FEATURE: List unused theme components (#6924)

This commit is contained in:
David Taylor
2019-01-23 09:20:13 +00:00
committed by GitHub
parent eb9377afd4
commit 2e59a37687
10 changed files with 56 additions and 49 deletions

View File

@ -7,7 +7,11 @@ const themes = [1, 2, 3, 4, 5].map(num =>
Theme.create({ name: `Theme ${num}` })
);
const components = [1, 2, 3, 4, 5].map(num =>
Theme.create({ name: `Child ${num}`, component: true })
Theme.create({
name: `Child ${num}`,
component: true,
parentThemes: [themes[num - 1]]
})
);
componentTest("current tab is themes", {