Skip to content

Commit

Permalink
tests: added a failing test to code later
Browse files Browse the repository at this point in the history
  • Loading branch information
jmishra17 committed Jul 22, 2015
1 parent 70a9210 commit 2ef60bb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,20 @@ describe('Inegration tests', function(){
done();
});
});

it("posts 'wolfram something something on something' and returns didyoumeans", function(done){
let textObj = {text: 'wolfram something something on something'};
request(appObj)
.post('/wolframBot')
.type('form')
.send(textObj)
.end(function(err, res){
if(err) return done(err);
expect(res.body.text).to.equal('Oops! did you mean any of the following:'
+' If so then try again by typing either of the following options');
done();
});
});
});
});

Expand Down

0 comments on commit 2ef60bb

Please sign in to comment.