From b8fda522d7da48e6a2bca9f08f5d806e4d64fbfc Mon Sep 17 00:00:00 2001 From: Lucas Delanier Date: Sat, 8 Apr 2023 15:06:47 +0200 Subject: [PATCH] last test --- components/__tests__/reducers.test.ts | 4 ---- redux/reducers/appReducer.ts | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/components/__tests__/reducers.test.ts b/components/__tests__/reducers.test.ts index 5f451c3..c2b4a49 100644 --- a/components/__tests__/reducers.test.ts +++ b/components/__tests__/reducers.test.ts @@ -170,7 +170,3 @@ describe('test POP_FIRST_TRENDING', () => { }) }) }) -/* - case POP_FIRST_TRENDING: - return {...state, trendingMovies: [...state.trendingMovies.filter((item: Movie) => item !== action.payload)]}; -*/ \ No newline at end of file diff --git a/redux/reducers/appReducer.ts b/redux/reducers/appReducer.ts index fd953ca..d3ac46f 100644 --- a/redux/reducers/appReducer.ts +++ b/redux/reducers/appReducer.ts @@ -3,7 +3,7 @@ import Movie from "../../model/Movie"; const initialState = { trendingIDs: [], - trendingMovies: [], + trendingMovies: [] as Movie[], watchLaterMovies: [] as Movie[], favouriteMovies: [] as Movie[], }