mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 12:24:25 +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
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user