Skip to content

Commit

Permalink
test: check for failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitkolhe committed Mar 31, 2024
1 parent c4277e3 commit 4b78883
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ export class CreateSongStationUseCase implements IUseCase<string, string> {
context: 'android'
})

console.log({
songId,
data
})

if (!data || !ok || !data.stationid) throw new HTTPException(500, { message: 'could not create station' })

return data.stationid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('GetSongSuggestions', () => {
})

it('should return suggestions for a song', async () => {
const suggestions = await getSongSuggestions.execute({ songId: 'P3qdsetQ', limit: 5 })
const suggestions = await getSongSuggestions.execute({ songId: '3IoDK8qI', limit: 5 })

expect(() => SongModel.parse(suggestions[0])).not.toThrow()
expect(suggestions.length).toBe(5)
Expand Down

0 comments on commit 4b78883

Please sign in to comment.