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)
|
sandbox.stub(AlbumDetail.methods, "fetchStats").callsFake(() => null)
|
||||||
wrapper = shallowMount(AlbumDetail, {
|
wrapper = shallowMount(AlbumDetail, {
|
||||||
localVue,
|
localVue,
|
||||||
|
propsData: {
|
||||||
|
'id': 0
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
|
@ -52,4 +55,4 @@ describe('views/admin/library', () => {
|
||||||
expect(wrapper.find('img').attributes('src')).to.include("default-cover")
|
expect(wrapper.find('img').attributes('src')).to.include("default-cover")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue