Comparing version 0.2.2 to 0.2.3
@@ -40,2 +40,3 @@ var _ = require('lodash'); | ||
} else { | ||
callback = methodName; | ||
return setImmediate(function() { | ||
@@ -42,0 +43,0 @@ callback(new Error('request takes 3 arguments: methodName, args (object) and callback function')); |
{ | ||
"name": "clang", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Node.js api wrapper for Clang's SOAP api", | ||
@@ -25,4 +25,4 @@ "author": "Christiaan Westerbeek <chris@devotis.nl>", | ||
"devDependencies": { | ||
"mocha": "2.3.x", | ||
"should": "7.1.x" | ||
"mocha": "^2.3.4", | ||
"should": "^7.1.1" | ||
}, | ||
@@ -29,0 +29,0 @@ "directories": { |
@@ -19,3 +19,3 @@ var should = require('should'); | ||
describe('Request signature', function() { | ||
it('Request without methodName and arguments should throw an error', function(done) { | ||
it('Request without methodName and arguments should callback with an error', function(done) { | ||
clang.request(function(err, result) { | ||
@@ -27,2 +27,9 @@ (!!err).should.be.equal(true); | ||
}); | ||
it('Request without uuid in arguments should callback with an error', function(done) { | ||
clang.request('someMethod', function(err, result) { | ||
(!!err).should.be.equal(true); | ||
done(); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
231817
6714