mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 10:10:08 +02:00
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:
committed by
sharelatex
parent
6fc507aea3
commit
757ae39487
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user