Add tests for songs.vue

This commit is contained in:
Phan An 2017-12-17 00:13:03 +01:00
parent db0e6d9245
commit fa3a8e0c78

View file

@ -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
})
})