From 2ef60bb66753d1d60ed1b60a9cecc49ab33728e0 Mon Sep 17 00:00:00 2001 From: Jasper Mishrs Date: Wed, 22 Jul 2015 00:50:38 -0700 Subject: [PATCH] tests: added a failing test to code later --- test/test.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/test.js b/test/test.js index b465aae..c868039 100644 --- a/test/test.js +++ b/test/test.js @@ -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(); + }); + }); }); });