Merge pull request #2047 from overleaf/spd-eslint-mocha-arrows

Enforce consistent callback style in mocha tests

GitOrigin-RevId: a64c293dae6926ef5831abe97eaf2044942a5c85
This commit is contained in:
Simon Detheridge
2019-08-07 15:29:25 +00:00
committed by sharelatex
parent 5c32523b53
commit 7588393580
112 changed files with 1461 additions and 1308 deletions
@@ -151,7 +151,7 @@ describe('ProjectOptionsHandler', function() {
})
})
describe('unsetting the brandVariationId', () =>
describe('unsetting the brandVariationId', function() {
it('should perform and update on mongo', function(done) {
this.handler.unsetBrandVariationId(project_id, err => {
const args = this.projectModel.update.args[0]
@@ -160,5 +160,6 @@ describe('ProjectOptionsHandler', function() {
return done()
})
return this.projectModel.update.args[0][3]()
}))
})
})
})