Permalink
Browse files

Fixing up tests in preparation for 0.0.4

  • Loading branch information...
1 parent 6c19755 commit c1f47230ba066d0ee37f276fd99687fc78ec5226 Ken Perkins committed Dec 18, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 Makefile
  2. +2 −2 lib/client/cloudloadbalancers.js
  3. +1 −1 test/loadbalancer-tests.js
View
@@ -1,4 +1,4 @@
-MOCHA_OPTS=-t 120000 test/loadbalancer-tests.js
+MOCHA_OPTS=-t 120000 test/*-tests.js
REPORTER = spec
check: test
@@ -73,8 +73,8 @@ exports.CloudLoadBalancers = {
var lb = {
name: details.name,
nodes: details.nodes,
- protocol: details.protocol.name,
- port: details.protocol.port,
+ protocol: details.protocol ? details.protocol.name : '',
+ port: details.protocol ? details.protocol.port : '',
virtualIps: details.virtualIps
};
@@ -25,7 +25,7 @@ describe('Load Balancer tests', function() {
should.exist(err);
should.not.exist(loadBalancer);
- err.requiredParametersMissing.length.should.equal(4);
+ err.requiredParametersMissing.length.should.equal(5);
done();
});

0 comments on commit c1f4723

Please sign in to comment.