Merge pull request #1899 from overleaf/spd-implicit-return-tests

Decaf cleanup: Remove implicit return from 'it' and 'describe' in tests

GitOrigin-RevId: f297820e6212dddc0d60697a2fe1612ef27403b6
This commit is contained in:
Simon Detheridge
2019-06-21 14:46:09 +01:00
committed by sharelatex
parent 6fc507aea3
commit 757ae39487
170 changed files with 1691 additions and 1691 deletions

View File

@@ -80,12 +80,12 @@ describe('BetaProgramHandler', function() {
})
})
return describe('when user.save produces an error', function() {
describe('when user.save produces an error', function() {
beforeEach(function() {
return this.user.save.callsArgWith(0, new Error('woops'))
})
return it('should produce an error', function(done) {
it('should produce an error', function(done) {
return this.call(err => {
expect(err).to.not.equal(null)
expect(err).to.be.instanceof(Error)
@@ -95,7 +95,7 @@ describe('BetaProgramHandler', function() {
})
})
return describe('optOut', function() {
describe('optOut', function() {
beforeEach(function() {
this.user.betaProgram = true
return (this.call = callback => {
@@ -125,12 +125,12 @@ describe('BetaProgramHandler', function() {
})
})
return describe('when user.save produces an error', function() {
describe('when user.save produces an error', function() {
beforeEach(function() {
return this.user.save.callsArgWith(0, new Error('woops'))
})
return it('should produce an error', function(done) {
it('should produce an error', function(done) {
return this.call(err => {
expect(err).to.not.equal(null)
expect(err).to.be.instanceof(Error)