mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
fix: some test errors
This commit is contained in:
parent
8c452dd0e1
commit
b6465c61e7
3 changed files with 3 additions and 3 deletions
|
@ -14,4 +14,4 @@ window.HTMLMediaElement.prototype.load = vi.fn()
|
|||
window.HTMLMediaElement.prototype.play = vi.fn()
|
||||
window.HTMLMediaElement.prototype.pause = vi.fn()
|
||||
|
||||
window.BASE_URL = 'https://koel.test/'
|
||||
window.BASE_URL = 'http://localhost/'
|
||||
|
|
|
@ -21,7 +21,7 @@ export const downloadService = {
|
|||
},
|
||||
|
||||
fromFavorites () {
|
||||
if (favoriteStore.all.length) {
|
||||
if (favoriteStore.state.songs.length) {
|
||||
this.trigger('favorites')
|
||||
}
|
||||
},
|
||||
|
|
|
@ -163,7 +163,7 @@ new class extends UnitTestCase {
|
|||
|
||||
it('gets shareable URL', () => {
|
||||
const song = factory<Song>('song', { id: 'foo' })
|
||||
expect(songStore.getShareableUrl(song)).toBe('https://koel.test/#!/song/foo')
|
||||
expect(songStore.getShareableUrl(song)).toBe('http://localhost/#!/song/foo')
|
||||
})
|
||||
|
||||
it('syncs with the vault', () => {
|
||||
|
|
Loading…
Reference in a new issue