diff --git a/test/cli.js b/test/cli.js index 876f84c..a1fb827 100644 --- a/test/cli.js +++ b/test/cli.js @@ -25,7 +25,7 @@ buster.testCase('cli - exec', { }); buster.testCase('cli - build', { - 'setUp': function () { + setUp: function () { this.mockConsole = this.mock(console); this.mockProcess = this.mock(process); }, @@ -119,7 +119,7 @@ buster.testCase('cli - build', { }); buster.testCase('cli - console', { - 'setUp': function () { + setUp: function () { this.mockConsole = this.mock(console); this.mockProcess = this.mock(process); this.stub(bag, 'cli', { @@ -149,7 +149,7 @@ buster.testCase('cli - console', { }); buster.testCase('cli - stop', { - 'setUp': function () { + setUp: function () { this.mockConsole = this.mock(console); this.mockProcess = this.mock(process); this.stub(bag, 'cli', { @@ -180,7 +180,7 @@ buster.testCase('cli - stop', { }); buster.testCase('cli - dashboard', { - 'setUp': function () { + setUp: function () { this.mockConsole = this.mock(console); this.mockProcess = this.mock(process); this.stub(bag, 'cli', { @@ -213,7 +213,7 @@ buster.testCase('cli - dashboard', { }); buster.testCase('cli - discover', { - 'setUp': function () { + setUp: function () { this.mockConsole = this.mock(console); this.mockProcess = this.mock(process); }, @@ -285,7 +285,7 @@ buster.testCase('cli - discover', { }); buster.testCase('cli - executor', { - 'setUp': function () { + setUp: function () { this.mockConsole = this.mock(console); this.mockProcess = this.mock(process); this.stub(bag, 'cli', { @@ -328,7 +328,7 @@ buster.testCase('cli - executor', { }); buster.testCase('cli - job', { - 'setUp': function () { + setUp: function () { this.mockConsole = this.mock(console); this.mockProcess = this.mock(process); this.stub(bag, 'cli', { @@ -364,7 +364,7 @@ buster.testCase('cli - job', { }); buster.testCase('cli - queue', { - 'setUp': function () { + setUp: function () { this.mockConsole = this.mock(console); this.mockProcess = this.mock(process); this.stub(bag, 'cli', { @@ -394,7 +394,7 @@ buster.testCase('cli - queue', { }); buster.testCase('cli - ver', { - 'setUp': function () { + setUp: function () { this.mockConsole = this.mock(console); this.mockProcess = this.mock(process); this.stub(bag, 'cli', { @@ -423,7 +423,7 @@ buster.testCase('cli - ver', { }); buster.testCase('cli - irc', { - 'setUp': function () { + setUp: function () { this.mockIrc = this.mock(irc); }, 'should start irc bot with undefined nick when irc command is called with host and channel args only': function () { @@ -447,4 +447,4 @@ buster.testCase('cli - irc', { }); cli.exec(); } -}); \ No newline at end of file +}); diff --git a/test/irc.js b/test/irc.js index cdda8f0..cd3cad1 100644 --- a/test/irc.js +++ b/test/irc.js @@ -45,7 +45,7 @@ buster.testCase('irc - build', { }); buster.testCase('irc - stop', { - 'setUp': function () { + setUp: function () { this.stub(bag.irc.Bot.prototype, 'connect', function (host, channel, opts) { assert.equals(host, 'somehost'); assert.equals(channel, 'somechannel'); @@ -68,7 +68,7 @@ buster.testCase('irc - stop', { }); buster.testCase('irc - dashboard', { - 'setUp': function () { + setUp: function () { this.stub(bag.irc.Bot.prototype, 'connect', function (host, channel, opts) { assert.equals(host, 'somehost'); assert.equals(channel, 'somechannel'); @@ -191,7 +191,7 @@ buster.testCase('irc - discover', { }); buster.testCase('irc - executor', { - 'setUp': function () { + setUp: function () { this.stub(bag.irc.Bot.prototype, 'connect', function (host, channel, opts) { assert.equals(host, 'somehost'); assert.equals(channel, 'somechannel'); @@ -249,7 +249,7 @@ buster.testCase('irc - executor', { }); buster.testCase('irc - job', { - 'setUp': function () { + setUp: function () { this.stub(bag.irc.Bot.prototype, 'connect', function (host, channel, opts) { assert.equals(host, 'somehost'); assert.equals(channel, 'somechannel'); @@ -284,7 +284,7 @@ buster.testCase('irc - job', { }); buster.testCase('irc - queue', { - 'setUp': function () { + setUp: function () { this.stub(bag.irc.Bot.prototype, 'connect', function (host, channel, opts) { assert.equals(host, 'somehost'); assert.equals(channel, 'somechannel'); @@ -322,7 +322,7 @@ buster.testCase('irc - queue', { }); buster.testCase('irc - ver', { - 'setUp': function () { + setUp: function () { this.stub(bag.irc.Bot.prototype, 'connect', function (host, channel, opts) { assert.equals(host, 'somehost'); assert.equals(channel, 'somechannel'); @@ -341,4 +341,4 @@ buster.testCase('irc - ver', { }); irc.start('somehost', 'somechannel', 'somenick'); } -}); \ No newline at end of file +}); diff --git a/test/jenkins.js b/test/jenkins.js index 19ffdf6..9a90e18 100644 --- a/test/jenkins.js +++ b/test/jenkins.js @@ -134,7 +134,7 @@ buster.testCase('jenkins - build', { }); buster.testCase('jenkins - console', { - 'setUp': function () { + setUp: function () { this.mockConsole = this.mock(console); }, 'should pass error not found when job does not exist': function (done) { @@ -651,4 +651,4 @@ buster.testCase('jenkins - _status', { var jenkins = new Jenkins(); assert.equals(jenkins._status('unknown'), 'UNKNOWN'.grey); } -}); \ No newline at end of file +});