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
@@ -334,7 +334,7 @@ describe('ProjectDuplicator', function() {
|
||||
)
|
||||
})
|
||||
|
||||
return it('should copy all the files', function(done) {
|
||||
it('should copy all the files', function(done) {
|
||||
return this.duplicator.duplicate(
|
||||
this.owner,
|
||||
this.old_project_id,
|
||||
@@ -376,7 +376,7 @@ describe('ProjectDuplicator', function() {
|
||||
})
|
||||
})
|
||||
|
||||
return describe('when there is an error', function() {
|
||||
describe('when there is an error', function() {
|
||||
beforeEach(function() {
|
||||
return (this.rootFolder.fileRefs = [
|
||||
{ name: 'file0', _id: 'file0' },
|
||||
@@ -414,7 +414,7 @@ describe('ProjectDuplicator', function() {
|
||||
)
|
||||
})
|
||||
|
||||
return it('should return an error', function(done) {
|
||||
it('should return an error', function(done) {
|
||||
return this.duplicator.duplicate(
|
||||
this.owner,
|
||||
this.old_project_id,
|
||||
|
||||
Reference in New Issue
Block a user