Update unit tests

This commit is contained in:
Nick O'Leary
2015-01-10 22:09:37 +00:00
parent afb5e8cbce
commit a5afc258b1
10 changed files with 342 additions and 336 deletions

View File

@@ -72,7 +72,7 @@ describe("flows api", function() {
});
it('returns error when set fails', function(done) {
var setFlows = sinon.stub(redNodes,'setFlows', function() {
return when.reject(new Error("test error"));
return when.reject(new Error("expected error"));
});
request(app)
.post('/flows')
@@ -83,7 +83,7 @@ describe("flows api", function() {
if (err) {
throw err;
}
res.text.should.eql("test error");
res.text.should.eql("expected error");
done();
});
});