mirror of
https://github.com/apricote/Listory.git
synced 2026-02-08 10:47:02 +00:00
test: create initial unit tests
This commit is contained in:
parent
be7fb7d13a
commit
e476243b85
16 changed files with 1177 additions and 18 deletions
|
|
@ -80,6 +80,8 @@ export class MusicLibraryService {
|
|||
// executed and it is now available in the database for use to retrieve
|
||||
return this.findAlbum({ spotify: { id: data.spotify.id } });
|
||||
}
|
||||
|
||||
throw err;
|
||||
}
|
||||
|
||||
return album;
|
||||
|
|
@ -139,6 +141,8 @@ export class MusicLibraryService {
|
|||
// executed and it is now available in the database for use to retrieve
|
||||
return this.findTrack({ spotify: { id: data.spotify.id } });
|
||||
}
|
||||
|
||||
throw err;
|
||||
}
|
||||
|
||||
return track;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue