Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Apr 3, 2020
1 parent 749c0f7 commit 55147f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion caracal.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ app.post('/data/User/update', dataHandlers.User.update);
// render mongo returns/data
app.use('/data', function(req, res, next) {
if (!req.data) {
res.status(404).json({'error': 'nothing found'});
res.status(404).json({});
}
res.json(req.data);
});
Expand Down
4 changes: 1 addition & 3 deletions test/functional/slide_lifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ describe('Slide Lifecycle Step 1', function() {
describe('Slide Lifecycle Step 2', function() {
it('Finds the Slide', function(done) {
this.timeout(5000);
var slideData = {'name': 'TEST', 'specimen': '', 'study': '', 'location': '/images/sample.svs', 'mpp': 0.499};
chai.request(server)
.post(findurl)
.get(findurl + '?name=TEST')
.set('Content-Type', 'application/json; charset=utf-8')
.send(slideData)
.end(function(err, res) {
(res).should.have.status(200);
(res.body).should.be.an('array');
Expand Down

0 comments on commit 55147f2

Please sign in to comment.