From 96deb2ac88fb9aae99c99e296abfe65b8e0dc723 Mon Sep 17 00:00:00 2001 From: NinaLua <168073229+NinaLua@users.noreply.github.com> Date: Wed, 1 May 2024 21:59:59 +0800 Subject: [PATCH] chore: remove repetitive words (#2241) --- webapp/src/modules/asset/reducer.spec.ts | 2 +- webapp/src/modules/contract/reducer.spec.ts | 2 +- webapp/src/modules/event/reducer.spec.ts | 2 +- webapp/src/modules/favorites/reducer.spec.ts | 12 ++++++------ webapp/src/modules/item/reducer.spec.ts | 6 +++--- webapp/src/modules/order/reducer.spec.ts | 4 ++-- webapp/src/modules/ui/asset/homepage/reducer.spec.ts | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/webapp/src/modules/asset/reducer.spec.ts b/webapp/src/modules/asset/reducer.spec.ts index c87b7f4148..fc96bb04ac 100644 --- a/webapp/src/modules/asset/reducer.spec.ts +++ b/webapp/src/modules/asset/reducer.spec.ts @@ -122,7 +122,7 @@ describe.each([ loading: loadingReducer([], requestAction) } - it('should return a state with the the loaded items with the fetched item and the loading state cleared', () => { + it('should return a state with the loaded items with the fetched item and the loading state cleared', () => { expect(assetReducer(initialState, successAction)).toEqual({ ...INITIAL_STATE, loading: [], diff --git a/webapp/src/modules/contract/reducer.spec.ts b/webapp/src/modules/contract/reducer.spec.ts index a371a2f1b2..647b50f639 100644 --- a/webapp/src/modules/contract/reducer.spec.ts +++ b/webapp/src/modules/contract/reducer.spec.ts @@ -112,7 +112,7 @@ describe('when upsert contracts action is received', () => { }) }) -describe('when the reset of the the has fetched flag is received', () => { +describe('when the reset of the has fetched flag is received', () => { let hasFetched: boolean describe('when has fetched was true', () => { diff --git a/webapp/src/modules/event/reducer.spec.ts b/webapp/src/modules/event/reducer.spec.ts index 51a7a84f61..416c2689c7 100644 --- a/webapp/src/modules/event/reducer.spec.ts +++ b/webapp/src/modules/event/reducer.spec.ts @@ -60,7 +60,7 @@ describe('when reducing the successful action of fetching an event addresses by loading: loadingReducer([], requestAction) } - it('should return a state with the the loaded events and the loading state cleared', () => { + it('should return a state with the loaded events and the loading state cleared', () => { expect(eventReducer(initialState, successAction)).toEqual({ ...INITIAL_STATE, loading: [], diff --git a/webapp/src/modules/favorites/reducer.spec.ts b/webapp/src/modules/favorites/reducer.spec.ts index 1c5cabbe59..25f1af7aa7 100644 --- a/webapp/src/modules/favorites/reducer.spec.ts +++ b/webapp/src/modules/favorites/reducer.spec.ts @@ -486,7 +486,7 @@ describe('when reducing the successful action of getting a list', () => { } }) - it('should return an state with the the new list overwriting the old one and the loading state cleared', () => { + it('should return an state with the new list overwriting the old one and the loading state cleared', () => { expect(favoritesReducer(initialState, successAction)).toEqual({ ...INITIAL_STATE, loading: [], @@ -501,7 +501,7 @@ describe('when reducing the successful action of getting a list', () => { }) describe("and the list doesn't exist in the state", () => { - it('should return a state with the the new list and the loading state cleared', () => { + it('should return a state with the new list and the loading state cleared', () => { expect(favoritesReducer(initialState, successAction)).toEqual({ ...INITIAL_STATE, loading: [], @@ -515,7 +515,7 @@ describe('when reducing the successful action of getting a list', () => { }) }) - it('should return a state with the the new list and the loading state cleared', () => { + it('should return a state with the new list and the loading state cleared', () => { expect(favoritesReducer(initialState, successAction)).toEqual({ ...INITIAL_STATE, loading: [], @@ -576,7 +576,7 @@ describe('when reducing the successful action of updating a list', () => { } }) - it('should return a state with the the updated list and the loading state cleared', () => { + it('should return a state with the updated list and the loading state cleared', () => { expect(favoritesReducer(initialState, successAction)).toEqual({ ...INITIAL_STATE, loading: [], @@ -621,7 +621,7 @@ describe('when reducing the successful action of creating a list', () => { } }) - it('should return a state with the the updated list and the loading state cleared', () => { + it('should return a state with the updated list and the loading state cleared', () => { expect(favoritesReducer(initialState, successAction)).toEqual({ ...INITIAL_STATE, loading: [], @@ -659,7 +659,7 @@ describe('when reducing the clear action of creating a list', () => { } }) - it('should return a state with the the updated list and the loading state cleared', () => { + it('should return a state with the updated list and the loading state cleared', () => { expect(favoritesReducer(initialState, clearAction)).toEqual({ ...INITIAL_STATE, loading: [], diff --git a/webapp/src/modules/item/reducer.spec.ts b/webapp/src/modules/item/reducer.spec.ts index 8e66d96e95..06107a483f 100644 --- a/webapp/src/modules/item/reducer.spec.ts +++ b/webapp/src/modules/item/reducer.spec.ts @@ -187,7 +187,7 @@ describe('when reducing the successful action of fetching items', () => { } describe('and the fetched items are not in the state', () => { - it('should return a state with the the loaded items and the loading state cleared', () => { + it('should return a state with the loaded items and the loading state cleared', () => { expect(itemReducer(initialState, successAction)).toEqual({ ...INITIAL_STATE, loading: [], @@ -237,7 +237,7 @@ describe.each([ loading: loadingReducer([], requestAction) } - it('should return a state with the the loaded items with the fetched item and the loading state cleared', () => { + it('should return a state with the loaded items with the fetched item and the loading state cleared', () => { expect(itemReducer(initialState, successAction)).toEqual({ ...INITIAL_STATE, loading: [], @@ -299,7 +299,7 @@ describe('when reducing the successful action of fetching trending items', () => loading: loadingReducer([], requestAction) } - it('should return a state with the the loaded items plus the fetched trending items and the loading state cleared', () => { + it('should return a state with the loaded items plus the fetched trending items and the loading state cleared', () => { expect(itemReducer(initialState, successAction)).toEqual({ ...INITIAL_STATE, loading: [], diff --git a/webapp/src/modules/order/reducer.spec.ts b/webapp/src/modules/order/reducer.spec.ts index 88274b945f..fd60e616a5 100644 --- a/webapp/src/modules/order/reducer.spec.ts +++ b/webapp/src/modules/order/reducer.spec.ts @@ -145,7 +145,7 @@ describe('when reducing the successful action of fetching nfts', () => { loading: loadingReducer([], requestAction) } - it('should return a state with the the loaded orders and the loading state cleared', () => { + it('should return a state with the loaded orders and the loading state cleared', () => { expect(orderReducer(initialState, successAction)).toEqual({ ...INITIAL_STATE, loading: [], @@ -205,7 +205,7 @@ describe('when reducing the successful action of fetching an nft', () => { loading: loadingReducer([], requestAction) } - it('should return a state with the the loaded orders plus the fetched order and the loading state cleared', () => { + it('should return a state with the loaded orders plus the fetched order and the loading state cleared', () => { expect(orderReducer(initialState, successAction)).toEqual({ ...INITIAL_STATE, loading: [], diff --git a/webapp/src/modules/ui/asset/homepage/reducer.spec.ts b/webapp/src/modules/ui/asset/homepage/reducer.spec.ts index ef0e19019e..8ca32ce72f 100644 --- a/webapp/src/modules/ui/asset/homepage/reducer.spec.ts +++ b/webapp/src/modules/ui/asset/homepage/reducer.spec.ts @@ -23,7 +23,7 @@ describe('when reducing the successful action of fetching trending items', () => home_trending_items: [item.id] } - it('should return a state with the the loaded items plus the fetched trending items and the loading state cleared', () => { + it('should return a state with the loaded items plus the fetched trending items and the loading state cleared', () => { expect(homepageReducer(initialState, successAction)).toEqual({ ...INITIAL_STATE, home_trending_items: [anotherItem.id]