chore: Update res.send(code) to res.sendStatus(code)

This commit is contained in:
Blade Barringer
2016-03-26 09:20:47 -05:00
parent 2477507b2e
commit cf8153fd93
13 changed files with 46 additions and 46 deletions

View File

@@ -579,8 +579,8 @@ describe('User Controller', function() {
it('sends back 204', function() {
userController.addTenGems(req, res);
expect(res.send).to.be.calledOnce;
expect(res.send).to.be.calledWith(204);
expect(res.sendStatus).to.be.calledOnce;
expect(res.sendStatus).to.be.calledWith(204);
});
});
@@ -610,8 +610,8 @@ describe('User Controller', function() {
it('sends back 204', function() {
userController.addHourglass(req, res);
expect(res.send).to.be.calledOnce;
expect(res.send).to.be.calledWith(204);
expect(res.sendStatus).to.be.calledOnce;
expect(res.sendStatus).to.be.calledWith(204);
});
});
});