Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Mar 17, 2015
1 parent 0600ea7 commit 7671190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ describe('App routes', function() {
it('Should save a value on POSTing, and give it back on GET', function(done) {
req
.post('/api/data/' + key)
.send({key: key})
.send({name: key, id: key})
.end(function(r, res) {
res.statusCode.should.equal(201);
req
.get('/api/data/' + key)
.end(function(r, res) {
res.text.should.equal('{"key":"' + key + '"}');
res.text.should.equal('{"name":"' + key + '","id":"' + key + '"}');
done();
});
});
Expand Down

0 comments on commit 7671190

Please sign in to comment.