Pass id to AlbumDetail in tests

This commit is contained in:
Georg Krause 2022-03-17 11:01:14 +01:00
parent b00d7572c8
commit 3b214bf696
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
1 changed files with 4 additions and 1 deletions

View File

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