From 4b7888338f8e436e852ed27a4e13ac8056ff4255 Mon Sep 17 00:00:00 2001 From: Sumit Kolhe <35036894+sumitkolhe@users.noreply.github.com> Date: Sun, 31 Mar 2024 18:00:52 +0530 Subject: [PATCH] test: check for failing tests --- .../create-song-station/create-song-station.use-case.ts | 5 +++++ .../get-song-suggestions.use-case.spec.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/songs/use-cases/create-song-station/create-song-station.use-case.ts b/src/modules/songs/use-cases/create-song-station/create-song-station.use-case.ts index 0b3c48b..b3c6681 100644 --- a/src/modules/songs/use-cases/create-song-station/create-song-station.use-case.ts +++ b/src/modules/songs/use-cases/create-song-station/create-song-station.use-case.ts @@ -18,6 +18,11 @@ export class CreateSongStationUseCase implements IUseCase { context: 'android' }) + console.log({ + songId, + data + }) + if (!data || !ok || !data.stationid) throw new HTTPException(500, { message: 'could not create station' }) return data.stationid diff --git a/src/modules/songs/use-cases/get-song-suggestions/get-song-suggestions.use-case.spec.ts b/src/modules/songs/use-cases/get-song-suggestions/get-song-suggestions.use-case.spec.ts index 809419c..57e03a5 100644 --- a/src/modules/songs/use-cases/get-song-suggestions/get-song-suggestions.use-case.spec.ts +++ b/src/modules/songs/use-cases/get-song-suggestions/get-song-suggestions.use-case.spec.ts @@ -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)