Permalink
Browse files

Library update.

  • Loading branch information...
1 parent ac17e3c commit ad3a8086fc78ae4a2b340467d5429c10cbdf7a87 @mcollina committed Sep 11, 2013
Showing with 11 additions and 17 deletions.
  1. +0 −1 .jshintrc
  2. +5 −7 package.json
  3. +3 −4 test/util_spec.js
  4. +3 −5 test/zeromq_ascoltatore_spec.js
View
@@ -1,7 +1,6 @@
{
"node": true,
"indent": 2,
- "es5": true,
"expr": true,
"globals": {
"it": false,
View
@@ -36,14 +36,14 @@
],
"devDependencies": {
"mocha": "~1.12.0",
- "chai": "~1.3.0",
- "sinon": "~1.4.2",
- "sinon-chai": "~2.1.2",
- "optimist": "~0.3.5",
+ "chai": "~1.7.0",
+ "sinon": "~1.7.3",
+ "sinon-chai": "~2.4.0",
+ "optimist": "~0.6.0",
"async_bench": "~0.1.0",
"dox-foundation": "0.4.4",
"mosca": "git://github.com/mcollina/mosca.git",
- "jshint": "~1.1.0",
+ "jshint": "~2.1.0",
"js-beautify": "~0.4.2",
"istanbul": "~0.1.40",
"coveralls": "~2.0.16"
@@ -52,12 +52,10 @@
"async": "~0.2.6",
"debug": "~0.7.2",
"node-uuid": "~1.4.0",
- "jshint": "~1.1.0",
"qlobber": "~0.3.0"
},
"optionalDependencies": {
"redis": "~0.8.1",
- "hiredis": "~0.1.14",
"zmq": "~2.4.0",
"amqp": "~0.1.4",
"mqtt": "~0.3.1",
View
@@ -23,12 +23,11 @@ describe("ascoltatori.util", function() {
it("should raise an exception if we try to alias something that's not a function", function() {
var obj = {
- a: "b"
+ a: function() {}
};
expect(function() {
- util.alias("a", "c");
- }).to.
- throw ("'a' is not a function");
+ util.alias({}, "a", "c");
+ }).to.throw ("'a' is not a function");
});
describe("aliasAscoltatore", function() {
@@ -11,11 +11,9 @@ describe("ascoltatori.ZeromqAscoltatore", function() {
});
afterEach(function(done) {
- async.parallel(toClose.map(function(i) {
- return function(cb) {
- i.close(cb);
- };
- }), done);
+ async.each(toClose, function(i, cb) {
+ i.close(cb);
+ }, setImmediate.bind(null, done));
});
it("should sync two instances", function(done) {

0 comments on commit ad3a808

Please sign in to comment.