Skip to content

improve: MOP-358: Implement useSlotItems#445

Open
alexieremia wants to merge 4 commits into2.xfrom
feature/MOP-358
Open

improve: MOP-358: Implement useSlotItems#445
alexieremia wants to merge 4 commits into2.xfrom
feature/MOP-358

Conversation

@alexieremia
Copy link
Contributor

No description provided.

return { teasers }
},
render() {
return h('div', { class: 'teaser-list' },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we pass a template instead? As example, I'd rather loop over the items and a wrapping div to each.

// Verify each teaser-square renders with correct props
const teasers = wrapper.findAll('.teaser-square')
expect(teasers).toHaveLength(3)
expect(teasers[0].text()).toBe('Node 1')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a good assertion. this would also be true if rendered without wrapper. we should assert we can add wrap each item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants