@@ -28,7 +28,7 @@ internals.prepareFixture = async ({ travisYml, packageJson, npmShrinkwrapJson, p
28
28
internals . tmpObjects . push ( tmpObj ) ;
29
29
30
30
if ( travisYml ) {
31
- Fs . copyFileSync ( Path . join ( __dirname , 'fixtures' , travisYml ) , Path . join ( tmpObj . name , '.travis.yml' ) ) ;
31
+ Fs . copyFileSync ( Path . join ( __dirname , 'fixtures' , 'travis-ymls' , travisYml ) , Path . join ( tmpObj . name , '.travis.yml' ) ) ;
32
32
}
33
33
34
34
if ( packageJson !== false ) {
@@ -990,11 +990,11 @@ describe('detect-node-support', () => {
990
990
. get ( '/watson/is-ci/HEAD/package.json' )
991
991
. reply ( 200 , JSON . stringify ( { name : 'is-ci' , version : '2.0.0' } ) )
992
992
. get ( '/watson/is-ci/HEAD/.travis.yml' )
993
- . reply ( 200 , Fs . readFileSync ( Path . join ( __dirname , 'fixtures' , 'testing-single-version.yml' ) ) )
993
+ . reply ( 200 , Fs . readFileSync ( Path . join ( __dirname , 'fixtures' , 'travis-ymls' , ' testing-single-version.yml') ) )
994
994
. get ( '/watson/ci-info/HEAD/package.json' )
995
995
. reply ( 200 , JSON . stringify ( { name : 'ci-info' , version : '2.0.0' } ) )
996
996
. get ( '/watson/ci-info/HEAD/.travis.yml' )
997
- . reply ( 200 , Fs . readFileSync ( Path . join ( __dirname , 'fixtures' , 'testing-single-version.yml' ) ) )
997
+ . reply ( 200 , Fs . readFileSync ( Path . join ( __dirname , 'fixtures' , 'travis-ymls' , ' testing-single-version.yml') ) )
998
998
. get ( '/visionmedia/debug/HEAD/package.json' )
999
999
. reply ( 200 , JSON . stringify ( { name : 'debug' , version : '4.1.1' } ) )
1000
1000
. get ( '/visionmedia/debug/HEAD/.travis.yml' )
@@ -1307,7 +1307,7 @@ describe('detect-node-support', () => {
1307
1307
1308
1308
const path = await internals . prepareFixture ( {
1309
1309
packageJson : JSON . parse ( Fs . readFileSync ( Path . join ( __dirname , 'fixtures' , 'deps-test' , 'package.json' ) ) . toString ( ) ) ,
1310
- packageLockJson : 'testing-single-version.yml'
1310
+ packageLockJson : 'travis-ymls/ testing-single-version.yml' // not a json file
1311
1311
} ) ;
1312
1312
1313
1313
await expect ( NodeSupport . detect ( { path } , { deps : true } ) ) . to . reject ( 'Unexpected token l in JSON at position 0' ) ;
0 commit comments