require('chai').should();
const helpers = require('../../lib/helpers');
const syncExec = require('sync-exec');

describe('packageJSONExists', () => {
    it('should return true', () => {
        helpers.packageJSONExists().should.equal(true);
    });

    it('should return false', () => {
        syncExec('mv package.json package.json.disappeared');
        helpers.packageJSONExists().should.equal(false);
        syncExec('mv package.json.disappeared package.json');
    });
});


@@ -71,24 +71,26 @@
 ;%0Aconst 
-syncExec
+%7BexecSync%7D
  = requi
@@ -97,17 +97,21 @@
 re('
-sync-exec
+child_process
 ');%0A
@@ -289,39 +289,39 @@
 () =%3E %7B%0A        
-syncExe
+execSyn
 c('mv package.js
@@ -420,15 +420,15 @@
     
-syncExe
+execSyn
 c('m

remove exec sync from test