mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
Add tests for songs.vue
This commit is contained in:
parent
db0e6d9245
commit
fa3a8e0c78
1 changed files with 13 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
|||
import Component from '@/components/main-wrapper/main-content/songs.vue'
|
||||
import SongList from '@/components/shared/song-list.vue'
|
||||
import factory from '@/tests/factory'
|
||||
import { songStore } from '@/stores'
|
||||
|
||||
describe('components/main-wrapper/main-content/settings', () => {
|
||||
it('renders properly', () => {
|
||||
songStore.all = factory('song', 10)
|
||||
const wrapper = shallow(Component)
|
||||
wrapper.find('h1.heading').text().should.contain('All Songs')
|
||||
wrapper.contains(SongList).should.be.true
|
||||
})
|
||||
})
|
Loading…
Reference in a new issue