mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
Add playlist-item component test
This commit is contained in:
parent
21b57ba1ef
commit
07556d35f3
1 changed files with 11 additions and 0 deletions
|
@ -37,4 +37,15 @@ describe('component/main-wrapper/sidebar/playlist-item', () => {
|
|||
wrapper.find('input[type=text]').trigger('blur')
|
||||
updateStub.calledWith(playlist).should.be.true
|
||||
})
|
||||
|
||||
it("doesn't allow editing Favorites item", () => {
|
||||
const wrapper = shallow(Component, {
|
||||
propsData: {
|
||||
playlist: { name: 'Favorites' },
|
||||
type: 'favorites'
|
||||
}
|
||||
})
|
||||
wrapper.find('li.favorites').trigger('dblclick')
|
||||
wrapper.contains('input[type=text]').should.be.false
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue