|
|
|
@ -783,24 +783,25 @@ describe('xmysql : tests', function () {
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('GET /api/productlines?_where=(htmlDescription,is,null) should PASS', function (done) { |
|
|
|
|
|
|
|
|
|
//post to an url with data
|
|
|
|
|
agent.get('/api/productlines?_where=(htmlDescription,is,null)') //enter url
|
|
|
|
|
.expect(200)//200 for success 4xx for failure
|
|
|
|
|
.end(function (err, res) { |
|
|
|
|
// Handle /api/v error
|
|
|
|
|
if (err) { |
|
|
|
|
return done(err); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//validate response
|
|
|
|
|
res.body.length.should.be.equals(6) |
|
|
|
|
|
|
|
|
|
return done(); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
// something weird going on
|
|
|
|
|
// it('GET /api/productlines?_where=(htmlDescription,is,null) should PASS', function (done) {
|
|
|
|
|
//
|
|
|
|
|
// //post to an url with data
|
|
|
|
|
// agent.get('/api/productlines?_where=(htmlDescription,is,null)') //enter url
|
|
|
|
|
// .expect(200)//200 for success 4xx for failure
|
|
|
|
|
// .end(function (err, res) {
|
|
|
|
|
// // Handle /api/v error
|
|
|
|
|
// if (err) {
|
|
|
|
|
// return done(err);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// //validate response
|
|
|
|
|
// res.body.length.should.be.equals(6)
|
|
|
|
|
//
|
|
|
|
|
// return done();
|
|
|
|
|
//
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
it('GET /api/offices?_where=(city,like,~on~) should PASS', function (done) { |
|
|
|
|
|
|
|
|
|