Pass id to AlbumDetail in tests

1704-required-props-are-not-always-passed
Georg Krause 2022-03-17 11:01:14 +01:00
rodzic b00d7572c8
commit 3b214bf696
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2970D504B2183D22
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

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