Skip to content

Commit

Permalink
test: add get song by id tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitkolhe committed Mar 16, 2024
1 parent e38ea8a commit 6af020c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_TL_ENGINE }}
scope: ${{ secrets.VERCEL_ORG_ID }}

- name: Run Tests Against Vercel
- name: Run Tests Against Staging
env:
VERCEL_URL: ${{ steps.deploy-vercel-staging.outputs.preview-url }}
run: bun test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@ describe('GetSongById', () => {
expect(song).toBeDefined()
expect(song).toHaveLength(1)
})

test('should return a song by id and include lyrics', async () => {
const song = await getSongById.execute({ songIds: 'ulCA5JTi', includeLyrics: true })
expect(song).toBeDefined()
expect(song).toHaveLength(1)
expect(song[0].lyrics).toBeDefined()
})
})

0 comments on commit 6af020c

Please sign in to comment.