Skip to content

Commit

Permalink
fix: Fix broken unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
razinj committed Jun 22, 2024
1 parent da02d81 commit 9708d23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/AllAppsLetterIndex.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('<AllAppsLetterIndex /> Tests', () => {
...initialStoreState,
appsList: {
list: [getAppForTestsByName('Chrome')!],
loading: false,
},
}

Expand All @@ -44,6 +45,7 @@ describe('<AllAppsLetterIndex /> Tests', () => {
...initialStoreState,
appsList: {
list: [getAppForTestsByName('Chrome')!, getAppForTestsByName('Maps')!],
loading: false,
},
}

Expand Down
2 changes: 2 additions & 0 deletions src/components/Search.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ describe('<Search /> Tests', () => {
...initialStoreState,
appsList: {
list: [chromeAppDetails, getAppForTestsByName('Maps')!],
loading: false,
},
appState: {
...initialStoreState.appState,
Expand Down Expand Up @@ -110,6 +111,7 @@ describe('<Search /> Tests', () => {
...initialStoreState,
appsList: {
list: [getAppForTestsByName('Chrome')!],
loading: false,
},
appState: {
...initialStoreState.appState,
Expand Down
1 change: 1 addition & 0 deletions utils/test/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const APP_ID = 'com.razinj.context_launcher'
export const initialStoreState: RootState = {
appsList: {
list: [],
loading: false,
},
favoriteApps: {
list: [],
Expand Down

0 comments on commit 9708d23

Please sign in to comment.