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

@@ -92,7 +92,7 @@ describe('InactiveProjectManager', function() {
)
})
return it('should not call unarchiveProject if it is active', function(done) {
it('should not call unarchiveProject if it is active', function(done) {
this.project.active = true
this.DocstoreManager.unarchiveProject.callsArgWith(1)
return this.InactiveProjectManager.reactivateProjectIfRequired(
@@ -110,7 +110,7 @@ describe('InactiveProjectManager', function() {
})
})
return describe('deactivateProject', function() {
describe('deactivateProject', function() {
it('should call unarchiveProject and markAsInactive', function(done) {
this.DocstoreManager.archiveProject.callsArgWith(1)
this.TrackChangesManager.archiveProject.callsArgWith(1)
@@ -132,7 +132,7 @@ describe('InactiveProjectManager', function() {
)
})
return it('should not call markAsInactive if there was a problem archiving in docstore', function(done) {
it('should not call markAsInactive if there was a problem archiving in docstore', function(done) {
this.DocstoreManager.archiveProject.callsArgWith(1, 'errorrr')
this.TrackChangesManager.archiveProject.callsArgWith(1)