From 7f220cc20a58cf6df625348caaf1ce7286fca75c Mon Sep 17 00:00:00 2001 From: Ed Moore Date: Sun, 19 Mar 2017 21:32:34 +1100 Subject: [PATCH] Removing old execSync code from tests --- test/detect.js | 7 ------- test/index.js | 6 ------ test/services/drone.js | 6 ------ test/services/localGit.js | 6 ------ test/upload.js | 6 ------ 5 files changed, 31 deletions(-) diff --git a/test/detect.js b/test/detect.js index f2142816..a384ca9d 100644 --- a/test/detect.js +++ b/test/detect.js @@ -1,12 +1,5 @@ - var detect = require("../lib/detect"); var execSync = require('child_process').execSync; -if (!execSync) { - var exec = require('execSync').exec; - var execSync = function(cmd){ - return exec(cmd).stdout; - }; -} describe("Codecov", function(){ diff --git a/test/index.js b/test/index.js index 68b932e8..90c94a13 100644 --- a/test/index.js +++ b/test/index.js @@ -1,12 +1,6 @@ var fs = require('fs'); var codecov = require("../lib/codecov"); var execSync = require('child_process').execSync; -if (!execSync) { - var exec = require('execSync').exec; - var execSync = function(cmd){ - return exec(cmd).stdout; - }; -} describe("Codecov", function(){ diff --git a/test/services/drone.js b/test/services/drone.js index 2b9e167f..ef28b8ec 100644 --- a/test/services/drone.js +++ b/test/services/drone.js @@ -1,11 +1,5 @@ var drone = require("../../lib/services/drone"); var execSync = require('child_process').execSync; -if (!execSync) { - var exec = require('execSync').exec; - var execSync = function(cmd){ - return exec(cmd).stdout; - }; -} describe("Drone.io CI Provider", function(){ diff --git a/test/services/localGit.js b/test/services/localGit.js index f82590c4..7c414595 100644 --- a/test/services/localGit.js +++ b/test/services/localGit.js @@ -1,11 +1,5 @@ var local = require("../../lib/services/localGit"); var execSync = require('child_process').execSync; -if (!execSync) { - var exec = require('execSync').exec; - var execSync = function(cmd){ - return exec(cmd).stdout; - }; -} describe("Local git/mercurial CI Provider", function(){ diff --git a/test/upload.js b/test/upload.js index 1b96eaa0..d697313b 100644 --- a/test/upload.js +++ b/test/upload.js @@ -2,12 +2,6 @@ var fs = require('fs'); var codecov = require('../lib/codecov'); var offlineErrors = require('../lib/offline'); var execSync = require('child_process').execSync; -if (!execSync) { - var exec = require('execSync').exec; - var execSync = function(cmd){ - return exec(cmd).stdout; - }; -} describe("Codecov", function(){