Pass id to AlbumDetail in tests
This commit is contained in:
parent
b00d7572c8
commit
3b214bf696
|
@ -30,6 +30,9 @@ describe('views/admin/library', () => {
|
|||
sandbox.stub(AlbumDetail.methods, "fetchStats").callsFake(() => null)
|
||||
wrapper = shallowMount(AlbumDetail, {
|
||||
localVue,
|
||||
propsData: {
|
||||
'id': 0
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isLoading: false,
|
||||
|
@ -52,4 +55,4 @@ describe('views/admin/library', () => {
|
|||
expect(wrapper.find('img').attributes('src')).to.include("default-cover")
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue