Skip to content

Commit

Permalink
test: check for suggestions length
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitkolhe committed Mar 31, 2024
1 parent 38af6b5 commit 7551975
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ describe('GetSongSuggestions', () => {
})

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

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

0 comments on commit 7551975

Please sign in to comment.