Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Removing old execSync code from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiemoore committed Mar 19, 2017
1 parent 4ba4609 commit 7f220cc
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 31 deletions.
7 changes: 0 additions & 7 deletions 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(){

Expand Down
6 changes: 0 additions & 6 deletions 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(){
Expand Down
6 changes: 0 additions & 6 deletions 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(){

Expand Down
6 changes: 0 additions & 6 deletions 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(){

Expand Down
6 changes: 0 additions & 6 deletions test/upload.js
Expand Up @@ -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(){
Expand Down

0 comments on commit 7f220cc

Please sign in to comment.