Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
call done itself
Browse files Browse the repository at this point in the history
  • Loading branch information
stanley zheng committed Dec 17, 2014
1 parent fbfcff5 commit d40c0ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "https://github.com/stanzheng/hrt-bus-text-my-bus.git"
},
"author": "",
"license": "ISC",
"license": "APACHE",
"bugs": {
"url": "https://github.com/stanzheng/hrt-bus-text-my-bus/issues"
},
Expand Down
9 changes: 7 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@ var app = require("../app.js");


describe('General incoming request', function(){
it('respond with xml', function(done){
it('responds with xml', function(done){
r(app)
.post('/msg')
.send({Body:"8004"})
.set('Accept', 'application/xml')
.expect(200, done);
.expect(200)
.end(function(err, res){
if (err) throw err;
done();
});
});
});


function clientError(e) {
return e.code >= 400 && e.code < 500;
}
Expand Down

0 comments on commit d40c0ec

Please sign in to comment.