Permalink
Browse files

Minor adjust to tests

  • Loading branch information...
1 parent bce3c1b commit b2bfd32b621e9287fb5eae078950d79fe92a98e9 @c4milo c4milo committed Feb 11, 2013
Showing with 6 additions and 2 deletions.
  1. +1 −1 configuration/package.json
  2. +4 −0 configuration/specs/swarm.spec.js
  3. +1 −1 participation/package.json
@@ -12,7 +12,7 @@
"devDependencies": {
"should": "1.2.1",
"mocha": "1.8.1",
- "bugswarm-prt": "0.3.4"
+ "bugswarm-prt": "0.3.5"
},
"dependencies": {
"superagent": "0.12.2"
@@ -2,6 +2,8 @@ var SwarmService = require('../lib/swarm');
var ResourceService = require('../lib/resource');
var ApiKeyService = require('../lib/apikey');
+var should = require('should');
+
describe('Swarm service', function(){
var swarmId;
var resource;
@@ -66,6 +68,8 @@ describe('Swarm service', function(){
_swarm.public = true;
swarmService.update(_swarm, function(err, swarm) {
+ if (err) {throw err;}
+ should.exist(swarm);
swarm.should.be.a('object');
swarm.should.have.property('id');
swarm.id.should.be.eql(swarmId);
@@ -21,7 +21,7 @@
"devDependencies": {
"should": "1.2.1",
"mocha": "1.8.1",
- "bugswarm-cfg": "0.3.4"
+ "bugswarm-cfg": "0.3.5"
},
"dependencies": {
"superagent": "https://github.com/c4milo/superagent/tarball/v0.1.5"

0 comments on commit b2bfd32

Please sign in to comment.