@@ -30,7 +30,6 @@ describe('npmAdapter', () => {
3030 describe ( '#setup' , ( ) => {
3131 it ( 'backs up the package.json file and node_modules' , async ( ) => {
3232 fs . mkdirSync ( 'node_modules' ) ;
33- writeJSONFile ( 'node_modules/prove-it.json' , { originalNodeModules : true } ) ;
3433 writeJSONFile ( 'package.json' , { originalPackageJSON : true } ) ;
3534
3635 let adapter = new NpmAdapter ( { cwd : tmpdir } ) ;
@@ -39,14 +38,10 @@ describe('npmAdapter', () => {
3938 assertFileContainsJSON ( path . join ( tmpdir , 'package.json.ember-try' ) , {
4039 originalPackageJSON : true ,
4140 } ) ;
42- assertFileContainsJSON ( path . join ( tmpdir , '.node_modules.ember-try/prove-it.json' ) , {
43- originalNodeModules : true ,
44- } ) ;
4541 } ) ;
4642
4743 it ( 'backs up the yarn.lock file, npm-shrinkwrap.json and package-lock.json if they exist' , async ( ) => {
4844 fs . mkdirSync ( 'node_modules' ) ;
49- writeJSONFile ( 'node_modules/prove-it.json' , { originalNodeModules : true } ) ;
5045 writeJSONFile ( 'package.json' , { originalPackageJSON : true } ) ;
5146 writeJSONFile ( 'yarn.lock' , { originalYarnLock : true } ) ;
5247 writeJSONFile ( 'npm-shrinkwrap.json' , { originalNpmShrinkWrap : true } ) ;
@@ -58,9 +53,6 @@ describe('npmAdapter', () => {
5853 assertFileContainsJSON ( path . join ( tmpdir , 'package.json.ember-try' ) , {
5954 originalPackageJSON : true ,
6055 } ) ;
61- assertFileContainsJSON ( path . join ( tmpdir , '.node_modules.ember-try/prove-it.json' ) , {
62- originalNodeModules : true ,
63- } ) ;
6456 assertFileContainsJSON ( path . join ( tmpdir , 'yarn.lock.ember-try' ) , {
6557 originalYarnLock : true ,
6658 } ) ;
@@ -347,23 +339,16 @@ describe('npmAdapter', () => {
347339 it ( 'replaces the package.json with the backed up version' , async ( ) => {
348340 writeJSONFile ( 'package.json.ember-try' , { originalPackageJSON : true } ) ;
349341 writeJSONFile ( 'package.json' , { originalPackageJSON : false } ) ;
350- fs . mkdirSync ( '.node_modules.ember-try' ) ;
351- writeJSONFile ( '.node_modules.ember-try/prove-it.json' , { originalNodeModules : true } ) ;
352342
353343 let adapter = new NpmAdapter ( { cwd : tmpdir } ) ;
354344 await adapter . _restoreOriginalDependencies ( ) ;
355345
356346 assertFileContainsJSON ( path . join ( tmpdir , 'package.json' ) , { originalPackageJSON : true } ) ;
357- assertFileContainsJSON ( path . join ( tmpdir , 'node_modules/prove-it.json' ) , {
358- originalNodeModules : true ,
359- } ) ;
360347 } ) ;
361348
362349 it ( 'replaces the yarn.lock, npm-shrinkwrap.json and package-lock.json with the backed up version if they exist' , async ( ) => {
363350 writeJSONFile ( 'package.json.ember-try' , { originalPackageJSON : true } ) ;
364351 writeJSONFile ( 'package.json' , { originalPackageJSON : false } ) ;
365- fs . mkdirSync ( '.node_modules.ember-try' ) ;
366- writeJSONFile ( '.node_modules.ember-try/prove-it.json' , { originalNodeModules : true } ) ;
367352 writeJSONFile ( 'yarn.lock.ember-try' , { originalYarnLock : true } ) ;
368353 writeJSONFile ( 'yarn.lock' , { originalYarnLock : false } ) ;
369354 writeJSONFile ( 'npm-shrinkwrap.json.ember-try' , { originalNpmShrinkWrap : true } ) ;
@@ -375,9 +360,6 @@ describe('npmAdapter', () => {
375360 await adapter . _restoreOriginalDependencies ( ) ;
376361
377362 assertFileContainsJSON ( path . join ( tmpdir , 'package.json' ) , { originalPackageJSON : true } ) ;
378- assertFileContainsJSON ( path . join ( tmpdir , 'node_modules/prove-it.json' ) , {
379- originalNodeModules : true ,
380- } ) ;
381363 assertFileContainsJSON ( path . join ( tmpdir , 'yarn.lock' ) , { originalYarnLock : true } ) ;
382364 assertFileContainsJSON ( path . join ( tmpdir , 'npm-shrinkwrap.json' ) , {
383365 originalNpmShrinkWrap : true ,
0 commit comments