@@ -281,7 +281,7 @@ describe.each([
281
281
expect ( response . headers [ "content-type" ] ) . toEqual (
282
282
"application/javascript; charset=utf-8"
283
283
) ;
284
- expect ( response . text ) . toBe ( codeContent . substr ( 3000 , 501 ) ) ;
284
+ expect ( response . text ) . toBe ( codeContent . slice ( 3000 , 3501 ) ) ;
285
285
expect ( response . text . length ) . toBe ( 501 ) ;
286
286
} ) ;
287
287
@@ -314,7 +314,7 @@ describe.each([
314
314
expect ( response . headers [ "content-type" ] ) . toEqual (
315
315
"application/javascript; charset=utf-8"
316
316
) ;
317
- expect ( response . text ) . toBe ( codeContent . substr ( 3000 , 501 ) ) ;
317
+ expect ( response . text ) . toBe ( codeContent . slice ( 3000 , 3501 ) ) ;
318
318
expect ( response . text . length ) . toBe ( 501 ) ;
319
319
} ) ;
320
320
@@ -331,7 +331,7 @@ describe.each([
331
331
expect ( response . headers [ "content-type" ] ) . toEqual (
332
332
"application/javascript; charset=utf-8"
333
333
) ;
334
- expect ( response . text ) . toBe ( codeContent . substr ( 3000 , 501 ) ) ;
334
+ expect ( response . text ) . toBe ( codeContent . slice ( 3000 , 3501 ) ) ;
335
335
expect ( response . text . length ) . toBe ( 501 ) ;
336
336
} ) ;
337
337
@@ -348,7 +348,7 @@ describe.each([
348
348
expect ( response . headers [ "content-type" ] ) . toEqual (
349
349
"application/javascript; charset=utf-8"
350
350
) ;
351
- expect ( response . text ) . toBe ( codeContent . substr ( 0 , 3501 ) ) ;
351
+ expect ( response . text ) . toBe ( codeContent . slice ( 0 , 3501 ) ) ;
352
352
expect ( response . text . length ) . toBe ( 3501 ) ;
353
353
} ) ;
354
354
@@ -365,7 +365,7 @@ describe.each([
365
365
expect ( response . headers [ "content-type" ] ) . toEqual (
366
366
"application/javascript; charset=utf-8"
367
367
) ;
368
- expect ( response . text ) . toBe ( codeContent . substr ( 0 , 801 ) ) ;
368
+ expect ( response . text ) . toBe ( codeContent . slice ( 0 , 801 ) ) ;
369
369
expect ( response . text . length ) . toBe ( 801 ) ;
370
370
} ) ;
371
371
0 commit comments