Skip to content

Commit

Permalink
fix: some test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
phanan committed Sep 14, 2022
1 parent 8c452dd commit b6465c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/assets/js/__tests__/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
2 changes: 1 addition & 1 deletion resources/assets/js/services/downloadService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const downloadService = {
},

fromFavorites () {
if (favoriteStore.all.length) {
if (favoriteStore.state.songs.length) {
this.trigger('favorites')
}
},
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/stores/songStore.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit b6465c6

Please sign in to comment.