diff --git a/test/fixtures/test.js b/test/fixtures/test.js index f5c6c40..3a869bf 100644 --- a/test/fixtures/test.js +++ b/test/fixtures/test.js @@ -1,7 +1,7 @@ 'use strict'; function helloWorld() { - console.log('Test'); + } module.exports = helloWorld; diff --git a/test/fixtures/testMore.js b/test/fixtures/testMore.js index f5c6c40..3a869bf 100644 --- a/test/fixtures/testMore.js +++ b/test/fixtures/testMore.js @@ -1,7 +1,7 @@ 'use strict'; function helloWorld() { - console.log('Test'); + } module.exports = helloWorld; diff --git a/test/integration.js b/test/integration.js index a92f0be..004651a 100644 --- a/test/integration.js +++ b/test/integration.js @@ -24,6 +24,8 @@ function cleanup() { ]); } +function noop() { } + describe('integrations', function() { var taker; @@ -65,7 +67,7 @@ describe('integrations', function() { it('should handle a child process return', function(done) { taker.task('test', function() { if (isWindows) { - return spawn('cmd', ['/c', 'dir']).on('error', console.log); + return spawn('cmd', ['/c', 'dir']).on('error', noop); } return spawn('ls', ['-lh', __dirname]); diff --git a/test/last-run.js b/test/last-run.js index 415cf55..830f407 100644 --- a/test/last-run.js +++ b/test/last-run.js @@ -5,12 +5,8 @@ var expect = require('expect'); var Undertaker = require('../'); describe('lastRun', function() { - var taker; + var taker, test1, test2, error, alias; var defaultResolution = process.env.UNDERTAKER_TIME_RESOLUTION; - var test1; - var test2; - var error; - var alias; beforeEach(function(done) { process.env.UNDERTAKER_TIME_RESOLUTION = '0'; diff --git a/test/registry.js b/test/registry.js index 80bd317..37c6a89 100644 --- a/test/registry.js +++ b/test/registry.js @@ -147,7 +147,7 @@ describe('registry', function() { }); it('should throw upon invalid registry', function(done) { - /*eslint no-unused-vars: 0*/ + /* eslint no-unused-vars: 0 */ var taker; function noGet() {