Permalink
Browse files

Upgrade deps to latest. Change test lib to buster-node + referee. Set…

… min node engine to >= v0.8.0 .
  • Loading branch information...
1 parent ed06137 commit 0009712ad65958fb3356e450a8bb27b0b599678d @cliffano committed Nov 5, 2013
Showing with 41 additions and 25 deletions.
  1. +2 −1 CHANGELOG.md
  2. +8 −7 package.json
  3. +5 −3 test/bot.js
  4. +4 −2 test/cli.js
  5. +5 −3 test/consolestream.js
  6. +4 −2 test/irc.js
  7. +4 −2 test/jenkins.js
  8. +4 −2 test/notifiers/buildlight.js
  9. +5 −3 test/notifiers/ninjablocks.js
View
3 CHANGELOG.md
@@ -1,5 +1,6 @@
### 0.2.2
-*
+* Change test lib to buster-node + referee
+* Set min node engine to >= v0.8.0
### 0.2.1
* BuildLight notifier blinks red on build failure
View
15 package.json
@@ -31,26 +31,27 @@
},
"dependencies": {
"async": "~0.2.9",
- "bagofcli": "~0.0.5",
- "bagofrequest": "~0.0.5",
- "bagoftext": "~0.0.2",
- "buildlight": "~0.0.4",
+ "bagofcli": "~0.0.8",
+ "bagofrequest": "~0.0.6",
+ "bagoftext": "~0.0.3",
+ "buildlight": "~0.0.5",
"colors": "~0.6.2",
"commander": "~2.0.0",
"cron": "~1.0.1",
"feedparser": "~0.15.3",
"irc": "~0.3.6",
- "lodash": "~1.3.1",
+ "lodash": "~2.2.1",
"ninja-blocks": "~0.1.3",
"request": "~2.27.0",
"xml2js": "~0.2.8"
},
"devDependencies": {
- "buster": "~0.6.12"
+ "buster-node": "~0.7.0",
+ "referee": "~1.0.1"
},
"scripts": {},
"engines": {
- "node": ">= 0.4.0"
+ "node": ">= 0.8.0"
},
"licenses": [
{
View
8 test/bot.js
@@ -1,7 +1,9 @@
var Bot = require('../lib/bot'),
- buster = require('buster'),
+ buster = require('buster-node'),
irc = require('irc'),
- text = require('bagoftext');
+ referee = require('referee'),
+ text = require('bagoftext'),
+ assert = referee.assert;
text.setLocale('en');
@@ -207,4 +209,4 @@ buster.testCase('bot - handleCb', {
}
this.bot.handleCb(successCb)(null, 'some result');
}
-});
+});
View
6 test/cli.js
@@ -1,13 +1,15 @@
-var buster = require('buster'),
+var buster = require('buster-node'),
_BuildLight = require('buildlight'),
BuildLight = require('../lib/notifiers/buildlight'),
_cli = require('bagofcli'),
cli = require('../lib/cli'),
irc = require('../lib/irc'),
Jenkins = new require('../lib/jenkins'),
NinjaBlocks = require('../lib/notifiers/ninjablocks'),
+ referee = require('referee'),
text = require('bagoftext'),
- util = require('util');
+ util = require('util'),
+ assert = referee.assert;
text.setLocale('en');
View
8 test/consolestream.js
@@ -1,10 +1,12 @@
-var buster = require('buster'),
- ConsoleStream = require('../lib/consolestream');
+var buster = require('buster-node'),
+ ConsoleStream = require('../lib/consolestream'),
+ referee = require('referee'),
+ assert = referee.assert;
buster.testCase('consolestream - consolestream', {
'should be readable but not writable': function () {
var consoleStream = new ConsoleStream();
assert.isTrue(consoleStream.readable);
assert.isFalse(consoleStream.writable);
}
-});
+});
View
6 test/irc.js
@@ -1,8 +1,10 @@
var Bot = require('../lib/bot'),
- buster = require('buster'),
+ buster = require('buster-node'),
irc = require('../lib/irc'),
Jenkins = new require('../lib/jenkins'),
- text = require('bagoftext');
+ referee = require('referee'),
+ text = require('bagoftext'),
+ assert = referee.assert;
text.setLocale('en');
View
6 test/jenkins.js
@@ -1,11 +1,13 @@
-var buster = require('buster'),
+var buster = require('buster-node'),
cron = require('cron'),
dgram = require('dgram'),
feedparser = require('feedparser'),
Jenkins = require('../lib/jenkins'),
+ referee = require('referee'),
req = require('bagofrequest'),
request = require('request'),
- text = require('bagoftext');
+ text = require('bagoftext'),
+ assert = referee.assert;
text.setLocale('en');
View
6 test/notifiers/buildlight.js
@@ -1,7 +1,9 @@
-var buster = require('buster'),
+var buster = require('buster-node'),
BuildLight = require('../../lib/notifiers/buildlight'),
_BuildLight = require('buildlight'),
- fs = require('fs');
+ fs = require('fs'),
+ referee = require('referee'),
+ assert = referee.assert;
buster.testCase('buildlight - notify', {
setUp: function () {
View
8 test/notifiers/ninjablocks.js
@@ -1,7 +1,9 @@
-var buster = require('buster'),
+var buster = require('buster-node'),
NinjaBlocks = require('../../lib/notifiers/ninjablocks'),
ninjaBlocks = require('ninja-blocks'),
- text = require('bagoftext');
+ referee = require('referee'),
+ text = require('bagoftext'),
+ assert = referee.assert;
text.setLocale('en');
@@ -84,4 +86,4 @@ buster.testCase('ninjablocks - notify', {
this.mockNinjaBlocks.expects('app').once().withExactArgs({ user_access_token: 'sometoken' }).returns(mockApp);
this.ninja.notify('SOMEUNKNOWNSTATUS');
}
-});
+});

0 comments on commit 0009712

Please sign in to comment.