Skip to content

Commit

Permalink
forceMenu override inline
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Aug 18, 2022
1 parent 40e15b0 commit 5364bf7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/components/Actions/Actions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ describe('Actions.vue', () => {
expect(wrapper.findAll('button.action-item').length).toBe(3)
expect(wrapper.find('.action-item__menutoggle').exists()).toBe(false)
})
it('shows the menu toggle when forced.', async () => {
await wrapper.setProps({ forceMenu: true })
expect(wrapper.findAll('button.action-item').length).toBe(0)
expect(wrapper.find('.action-item__menutoggle').exists()).toBe(true)
})
})
})
})

0 comments on commit 5364bf7

Please sign in to comment.