Merge pull request #2746 from overleaf/ew-jpa-fix-deprecated-express-methods

[misc] fix express deprecations

GitOrigin-RevId: 78c730578c6a671f142837c98f98d5fd260332a5
This commit is contained in:
Miguel Serrano
2020-05-07 03:27:56 +00:00
committed by Copybot
parent 0ba6a1f11d
commit 0583f7a667
21 changed files with 65 additions and 74 deletions
@@ -267,7 +267,7 @@ describe('UserController', function() {
describe('unsubscribe', function() {
it('should send the user to unsubscribe', function(done) {
this.res.send = code => {
this.res.sendStatus = () => {
this.NewsLetterManager.unsubscribe
.calledWith(this.user)
.should.equal(true)