mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 23:59:01 +02:00
Merge pull request #2047 from overleaf/spd-eslint-mocha-arrows
Enforce consistent callback style in mocha tests GitOrigin-RevId: a64c293dae6926ef5831abe97eaf2044942a5c85
This commit is contained in:
committed by
sharelatex
parent
5c32523b53
commit
7588393580
@@ -90,7 +90,7 @@ describe('ProjectUpdateHandler', function() {
|
||||
})
|
||||
})
|
||||
|
||||
describe('markAsOpened', () =>
|
||||
describe('markAsOpened', function() {
|
||||
it('should send an update to mongo', function(done) {
|
||||
const project_id = 'project_id'
|
||||
return this.handler.markAsOpened(project_id, err => {
|
||||
@@ -101,9 +101,10 @@ describe('ProjectUpdateHandler', function() {
|
||||
date.substring(0, 5).should.equal(now.substring(0, 5))
|
||||
return done()
|
||||
})
|
||||
}))
|
||||
})
|
||||
})
|
||||
|
||||
describe('markAsInactive', () =>
|
||||
describe('markAsInactive', function() {
|
||||
it('should send an update to mongo', function(done) {
|
||||
const project_id = 'project_id'
|
||||
return this.handler.markAsInactive(project_id, err => {
|
||||
@@ -112,9 +113,10 @@ describe('ProjectUpdateHandler', function() {
|
||||
args[1].active.should.equal(false)
|
||||
return done()
|
||||
})
|
||||
}))
|
||||
})
|
||||
})
|
||||
|
||||
describe('markAsActive', () =>
|
||||
describe('markAsActive', function() {
|
||||
it('should send an update to mongo', function(done) {
|
||||
const project_id = 'project_id'
|
||||
return this.handler.markAsActive(project_id, err => {
|
||||
@@ -123,5 +125,6 @@ describe('ProjectUpdateHandler', function() {
|
||||
args[1].active.should.equal(true)
|
||||
return done()
|
||||
})
|
||||
}))
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user