@@ -157,7 +157,7 @@ describe('ListRepo', () => {
157
157
describe ( 'renders' , ( ) => {
158
158
it ( 'renders the children' , ( ) => {
159
159
setup ( { } )
160
- render ( < ListRepo /> , {
160
+ render ( < ListRepo canRefetch /> , {
161
161
wrapper : wrapper ( { } ) ,
162
162
} )
163
163
@@ -166,7 +166,7 @@ describe('ListRepo', () => {
166
166
167
167
it ( 'renders the repo table' , ( ) => {
168
168
setup ( { } )
169
- render ( < ListRepo /> , {
169
+ render ( < ListRepo canRefetch /> , {
170
170
wrapper : wrapper ( { } ) ,
171
171
} )
172
172
@@ -177,7 +177,7 @@ describe('ListRepo', () => {
177
177
describe ( 'reads URL parameters' , ( ) => {
178
178
it ( 'reads search parameter from URL' , ( ) => {
179
179
setup ( { } )
180
- render ( < ListRepo /> , {
180
+ render ( < ListRepo canRefetch /> , {
181
181
wrapper : wrapper ( { url : '?search=thisisaquery' } ) ,
182
182
} )
183
183
@@ -189,7 +189,7 @@ describe('ListRepo', () => {
189
189
describe ( 'update params after typing' , ( ) => {
190
190
it ( 'calls setSearchValue' , async ( ) => {
191
191
const { user } = setup ( { } )
192
- render ( < ListRepo /> , {
192
+ render ( < ListRepo canRefetch /> , {
193
193
wrapper : wrapper ( { } ) ,
194
194
} )
195
195
@@ -207,7 +207,7 @@ describe('ListRepo', () => {
207
207
describe ( 'when rendered for team plan' , ( ) => {
208
208
it ( 'renders the team table' , async ( ) => {
209
209
setup ( { isTeamPlan : true } )
210
- render ( < ListRepo /> , {
210
+ render ( < ListRepo canRefetch /> , {
211
211
wrapper : wrapper ( { } ) ,
212
212
} )
213
213
const table = await screen . findByText ( / R e p o s T a b l e T e a m / )
@@ -218,7 +218,7 @@ describe('ListRepo', () => {
218
218
describe ( 'welcome demo alert banner' , ( ) => {
219
219
it ( 'shows alert banner if it is my owner page and I came from onboarding' , async ( ) => {
220
220
const { me } = setup ( { } )
221
- render ( < ListRepo /> , {
221
+ render ( < ListRepo canRefetch /> , {
222
222
wrapper : wrapper ( {
223
223
url : '/gh/janedoe?source=onboarding' ,
224
224
path : '/:provider/:owner' ,
@@ -231,7 +231,7 @@ describe('ListRepo', () => {
231
231
232
232
it ( 'does not show alert banner if I did not come from onboarding' , async ( ) => {
233
233
const { me } = setup ( { } )
234
- render ( < ListRepo /> , {
234
+ render ( < ListRepo canRefetch /> , {
235
235
wrapper : wrapper ( {
236
236
url : '/gh/janedoe' ,
237
237
path : '/:provider/:owner' ,
@@ -246,7 +246,7 @@ describe('ListRepo', () => {
246
246
describe ( 'user does not have gh app installed' , ( ) => {
247
247
it ( 'displays github app config banner if showDemoAlert is false' , async ( ) => {
248
248
setup ( { } )
249
- render ( < ListRepo hasGhApp = { false } /> , {
249
+ render ( < ListRepo canRefetch hasGhApp = { false } /> , {
250
250
wrapper : wrapper ( {
251
251
url : '/gh/janedoe' ,
252
252
path : '/:provider/:owner' ,
@@ -258,7 +258,7 @@ describe('ListRepo', () => {
258
258
} )
259
259
it ( 'does not display github app config banner if showDemoAlert is true' , async ( ) => {
260
260
setup ( { } )
261
- render ( < ListRepo hasGhApp = { false } /> , {
261
+ render ( < ListRepo canRefetch hasGhApp = { false } /> , {
262
262
wrapper : wrapper ( {
263
263
url : '/gh/janedoe?source=onboarding' ,
264
264
path : '/:provider/:owner' ,
@@ -272,7 +272,7 @@ describe('ListRepo', () => {
272
272
} )
273
273
it ( 'does not display github app config banner if isAdmin is false' , async ( ) => {
274
274
setup ( { isAdmin : false } )
275
- render ( < ListRepo hasGhApp = { false } /> , {
275
+ render ( < ListRepo canRefetch hasGhApp = { false } /> , {
276
276
wrapper : wrapper ( {
277
277
url : '/gh/janedoe' ,
278
278
path : '/:provider/:owner' ,
@@ -285,7 +285,7 @@ describe('ListRepo', () => {
285
285
describe ( 'user has gh app installed' , ( ) => {
286
286
it ( 'does not display github app config banner if hasGhApp is true' , async ( ) => {
287
287
setup ( { } )
288
- render ( < ListRepo hasGhApp = { true } /> , {
288
+ render ( < ListRepo canRefetch hasGhApp = { true } /> , {
289
289
wrapper : wrapper ( {
290
290
url : '/gh/janedoe' ,
291
291
path : '/:provider/:owner' ,
0 commit comments