@@ -449,13 +449,12 @@ describe('Routes', () => {
449449 integrationFolder : 'tests' ,
450450 fixturesFolder : 'tests/_fixtures' ,
451451 supportFile : 'tests/_support/spec_helper.js' ,
452- javascripts : [ 'tests/etc/**/*' ] ,
453452 } ,
454453 } )
455454 } )
456455
457456 it ( 'returns base json file path objects of only tests' , function ( ) {
458- // this should omit any _fixture files, _support files and javascripts
457+ // this should omit any _fixture files, _support files
459458 return glob ( path . join ( Fixtures . projectPath ( 'todos' ) , 'tests' , '_fixtures' , '**' , '*' ) )
460459 . then ( ( files ) => {
461460 // make sure there are fixtures in here!
@@ -477,7 +476,7 @@ describe('Routes', () => {
477476 body,
478477 } = res
479478
480- expect ( body . integration ) . to . have . length ( 4 )
479+ expect ( body . integration ) . to . have . length ( 5 )
481480
482481 // remove the absolute path key
483482 body . integration = _ . map ( body . integration , ( obj ) => {
@@ -487,8 +486,12 @@ describe('Routes', () => {
487486 expect ( res . body ) . to . deep . eq ( {
488487 integration : [
489488 {
490- 'name' : 'sub/a&b%c.js' ,
491- 'relative' : 'tests/sub/a&b%c.js' ,
489+ name : 'etc/etc.js' ,
490+ relative : 'tests/etc/etc.js' ,
491+ } ,
492+ {
493+ name : 'sub/a&b%c.js' ,
494+ relative : 'tests/sub/a&b%c.js' ,
492495 } ,
493496 {
494497 name : 'sub/sub_test.coffee' ,
@@ -738,7 +741,7 @@ describe('Routes', () => {
738741 projectRoot : Fixtures . projectPath ( 'no-server' ) ,
739742 config : {
740743 integrationFolder : 'my-tests' ,
741- javascripts : [ 'helpers/includes.js' ] ,
744+ supportFile : 'helpers/includes.js' ,
742745 } ,
743746 } )
744747 } )
@@ -752,7 +755,7 @@ describe('Routes', () => {
752755 } )
753756 } )
754757
755- it ( 'processes helpers/includes.js javascripts ' , function ( ) {
758+ it ( 'processes helpers/includes.js supportFile ' , function ( ) {
756759 return this . rp ( 'http://localhost:2020/__cypress/tests?p=helpers/includes.js' )
757760 . then ( ( res ) => {
758761 expect ( res . statusCode ) . to . eq ( 200 )
@@ -1108,7 +1111,6 @@ describe('Routes', () => {
11081111 integrationFolder : 'tests' ,
11091112 fixturesFolder : 'tests/_fixtures' ,
11101113 supportFile : 'tests/_support/spec_helper.js' ,
1111- javascripts : [ 'tests/etc/etc.js' ] ,
11121114 } ,
11131115 } , { } , spec )
11141116 }
0 commit comments