@@ -39,7 +39,7 @@ const dappsCategories: DappCategory[] = [
3939]
4040
4141const defaultStore = createMockStore ( {
42- dapps : { dappListApiUrl : 'http://url.com' , dappsList, dappsCategories } ,
42+ dapps : { dappsList, dappsCategories } ,
4343} )
4444
4545describe ( 'DappsScreen' , ( ) => {
@@ -106,7 +106,6 @@ describe('DappsScreen', () => {
106106 it ( 'opens dapps directly' , ( ) => {
107107 const store = createMockStore ( {
108108 dapps : {
109- dappListApiUrl : 'http://url.com' ,
110109 dappsList,
111110 dappsCategories,
112111 } ,
@@ -130,7 +129,6 @@ describe('DappsScreen', () => {
130129 it ( 'renders error message when fetching dapps fails' , ( ) => {
131130 const store = createMockStore ( {
132131 dapps : {
133- dappListApiUrl : 'http://url.com' ,
134132 dappsList : [ ] ,
135133 dappsCategories : [ ] ,
136134 dappsListError : 'Error fetching dapps' ,
@@ -152,7 +150,6 @@ describe('DappsScreen', () => {
152150 it ( 'renders correctly when there are no favorite dapps' , ( ) => {
153151 const store = createMockStore ( {
154152 dapps : {
155- dappListApiUrl : 'http://url.com' ,
156153 dappsList,
157154 dappsCategories,
158155 favoriteDappIds : [ ] ,
@@ -173,7 +170,6 @@ describe('DappsScreen', () => {
173170 it ( 'renders correctly when there are favourited dapps' , ( ) => {
174171 const store = createMockStore ( {
175172 dapps : {
176- dappListApiUrl : 'http://url.com' ,
177173 dappsList,
178174 dappsCategories,
179175 favoriteDappIds : [ 'dapp2' ] ,
@@ -195,7 +191,6 @@ describe('DappsScreen', () => {
195191 it ( 'triggers the events when favoriting' , ( ) => {
196192 const store = createMockStore ( {
197193 dapps : {
198- dappListApiUrl : 'http://url.com' ,
199194 dappsList,
200195 dappsCategories,
201196 favoriteDappIds : [ 'dapp1' ] ,
@@ -230,7 +225,6 @@ describe('DappsScreen', () => {
230225 it ( 'triggers the events when unfavoriting' , ( ) => {
231226 const store = createMockStore ( {
232227 dapps : {
233- dappListApiUrl : 'http://url.com' ,
234228 dappsList,
235229 dappsCategories,
236230 favoriteDappIds : [ 'dapp2' ] ,
@@ -268,7 +262,6 @@ describe('DappsScreen', () => {
268262 it ( 'renders correctly when there are no search results' , ( ) => {
269263 const store = createMockStore ( {
270264 dapps : {
271- dappListApiUrl : 'http://url.com' ,
272265 dappsList,
273266 dappsCategories,
274267 favoriteDappIds : [ ] ,
@@ -291,7 +284,6 @@ describe('DappsScreen', () => {
291284 it ( 'renders correctly when there are search results in both sections' , ( ) => {
292285 const store = createMockStore ( {
293286 dapps : {
294- dappListApiUrl : 'http://url.com' ,
295287 dappsList,
296288 dappsCategories,
297289 favoriteDappIds : [ 'dapp2' ] ,
@@ -324,7 +316,6 @@ describe('DappsScreen', () => {
324316 it ( 'clearing search input should show all dapps' , ( ) => {
325317 const store = createMockStore ( {
326318 dapps : {
327- dappListApiUrl : 'http://url.com' ,
328319 dappsList,
329320 dappsCategories,
330321 favoriteDappIds : [ 'dapp2' ] ,
@@ -360,7 +351,6 @@ describe('DappsScreen', () => {
360351 it ( 'renders correctly when there are no filters applied' , ( ) => {
361352 const store = createMockStore ( {
362353 dapps : {
363- dappListApiUrl : 'http://url.com' ,
364354 dappsList,
365355 dappsCategories,
366356 favoriteDappIds : [ 'dapp1' ] ,
@@ -391,7 +381,6 @@ describe('DappsScreen', () => {
391381 it ( 'renders correctly when there are filters applied' , ( ) => {
392382 const store = createMockStore ( {
393383 dapps : {
394- dappListApiUrl : 'http://url.com' ,
395384 dappsList,
396385 dappsCategories,
397386 favoriteDappIds : [ 'dapp1' ] ,
@@ -425,7 +414,6 @@ describe('DappsScreen', () => {
425414 it ( 'triggers event when filtering' , ( ) => {
426415 const store = createMockStore ( {
427416 dapps : {
428- dappListApiUrl : 'http://url.com' ,
429417 dappsList,
430418 dappsCategories,
431419 favoriteDappIds : [ 'dapp1' ] ,
@@ -453,7 +441,6 @@ describe('DappsScreen', () => {
453441 it ( 'triggers events when toggling a category filter' , ( ) => {
454442 const store = createMockStore ( {
455443 dapps : {
456- dappListApiUrl : 'http://url.com' ,
457444 dappsList,
458445 dappsCategories,
459446 favoriteDappIds : [ 'dapp1' ] ,
@@ -488,7 +475,6 @@ describe('DappsScreen', () => {
488475 it ( 'triggers event when clearing filters from category section' , ( ) => {
489476 const store = createMockStore ( {
490477 dapps : {
491- dappListApiUrl : 'http://url.com' ,
492478 dappsList,
493479 dappsCategories,
494480 favoriteDappIds : [ 'dapp2' ] ,
@@ -524,7 +510,6 @@ describe('DappsScreen', () => {
524510 it ( 'triggers event when clearing filters from favorite section' , ( ) => {
525511 const store = createMockStore ( {
526512 dapps : {
527- dappListApiUrl : 'http://url.com' ,
528513 dappsList,
529514 dappsCategories,
530515 favoriteDappIds : [ 'dapp1' ] ,
@@ -559,7 +544,6 @@ describe('DappsScreen', () => {
559544 it ( 'renders correctly when there are results in all and favorites sections' , ( ) => {
560545 const store = createMockStore ( {
561546 dapps : {
562- dappListApiUrl : 'http://url.com' ,
563547 dappsList,
564548 dappsCategories,
565549 favoriteDappIds : [ 'dapp1' ] ,
@@ -588,7 +572,6 @@ describe('DappsScreen', () => {
588572 it ( 'renders correctly when there are results in favorites and no results in all' , ( ) => {
589573 const store = createMockStore ( {
590574 dapps : {
591- dappListApiUrl : 'http://url.com' ,
592575 dappsList,
593576 dappsCategories,
594577 favoriteDappIds : [ 'dapp1' ] ,
@@ -619,7 +602,6 @@ describe('DappsScreen', () => {
619602 it ( 'renders correctly when there are no results in favorites and results in all' , ( ) => {
620603 const store = createMockStore ( {
621604 dapps : {
622- dappListApiUrl : 'http://url.com' ,
623605 dappsList,
624606 dappsCategories,
625607 favoriteDappIds : [ 'dapp2' ] ,
@@ -651,7 +633,6 @@ describe('DappsScreen', () => {
651633
652634 describe ( 'dapp open analytics event properties' , ( ) => {
653635 const defaultStoreProps = {
654- dappListApiUrl : 'http://url.com' ,
655636 dappsList,
656637 dappsCategories,
657638 favoriteDappIds : [ ] ,
0 commit comments