@@ -189,29 +189,6 @@ describe('getIntegrationsToSetup', () => {
189
189
} ) ;
190
190
} ) ;
191
191
192
- describe ( 'puts `Debug` integration last' , ( ) => {
193
- // No variations here (default vs user, duplicates, user array vs user function, etc) because by the time we're
194
- // dealing with the `Debug` integration, all of the combining and deduping has already been done
195
- const noDebug = [ new MockIntegration ( 'ChaseSquirrels' ) ] ;
196
- const debugNotLast = [ new MockIntegration ( 'Debug' ) , new MockIntegration ( 'CatchTreats' ) ] ;
197
- const debugAlreadyLast = [ new MockIntegration ( 'ChaseSquirrels' ) , new MockIntegration ( 'Debug' ) ] ;
198
-
199
- const testCases : TestCase [ ] = [
200
- // each test case is [testName, defaultIntegrations, userIntegrations, expectedResult]
201
- [ '`Debug` not present' , false , noDebug , [ 'ChaseSquirrels' ] ] ,
202
- [ '`Debug` not originally last' , false , debugNotLast , [ 'CatchTreats' , 'Debug' ] ] ,
203
- [ '`Debug` already last' , false , debugAlreadyLast , [ 'ChaseSquirrels' , 'Debug' ] ] ,
204
- ] ;
205
-
206
- test . each ( testCases ) ( '%s' , ( _ , defaultIntegrations , userIntegrations , expected ) => {
207
- const integrations = getIntegrationsToSetup ( {
208
- defaultIntegrations,
209
- integrations : userIntegrations ,
210
- } ) ;
211
- expect ( integrations . map ( i => i . name ) ) . toEqual ( expected ) ;
212
- } ) ;
213
- } ) ;
214
-
215
192
it ( 'works with empty array' , ( ) => {
216
193
const integrations = getIntegrationsToSetup ( {
217
194
integrations : [ ] ,
@@ -305,29 +282,6 @@ describe('getIntegrationsToSetup', () => {
305
282
expect ( ( integrations [ 0 ] as any ) . order ) . toEqual ( 'firstUser' ) ;
306
283
expect ( ( integrations [ 1 ] as any ) . order ) . toEqual ( 'secondUser' ) ;
307
284
} ) ;
308
-
309
- it ( 'always moves Debug integration to the end of the list' , ( ) => {
310
- let integrations = getIntegrationsToSetup ( {
311
- defaultIntegrations : [ new MockIntegration ( 'Debug' ) , new MockIntegration ( 'foo' ) ] ,
312
- integrations : [ new MockIntegration ( 'bar' ) ] ,
313
- } ) ;
314
-
315
- expect ( integrations . map ( i => i . name ) ) . toEqual ( [ 'foo' , 'bar' , 'Debug' ] ) ;
316
-
317
- integrations = getIntegrationsToSetup ( {
318
- defaultIntegrations : [ new MockIntegration ( 'foo' ) ] ,
319
- integrations : [ new MockIntegration ( 'Debug' ) , new MockIntegration ( 'bar' ) ] ,
320
- } ) ;
321
-
322
- expect ( integrations . map ( i => i . name ) ) . toEqual ( [ 'foo' , 'bar' , 'Debug' ] ) ;
323
-
324
- integrations = getIntegrationsToSetup ( {
325
- defaultIntegrations : [ new MockIntegration ( 'Debug' ) ] ,
326
- integrations : [ new MockIntegration ( 'foo' ) ] ,
327
- } ) ;
328
-
329
- expect ( integrations . map ( i => i . name ) ) . toEqual ( [ 'foo' , 'Debug' ] ) ;
330
- } ) ;
331
285
} ) ;
332
286
333
287
describe ( 'setupIntegration' , ( ) => {
0 commit comments