mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 05:11:34 +02:00
Merge pull request #3496 from overleaf/ae-eslint-dot-notation
Enable the eslint dot-notation rule GitOrigin-RevId: e11cbad3e8a77a4a60590d3674fbf34feccc5bc9
This commit is contained in:
@@ -87,7 +87,7 @@ describe('AnalyticsController', function() {
|
||||
this.AuthenticationController.getLoggedInUserId.returns('1234')
|
||||
this.controller.recordEvent(this.req, this.res)
|
||||
this.AnalyticsManager.recordEvent
|
||||
.calledWith('1234', this.req.params['event'], this.req.body)
|
||||
.calledWith('1234', this.req.params.event, this.req.body)
|
||||
.should.equal(true)
|
||||
done()
|
||||
})
|
||||
@@ -95,7 +95,7 @@ describe('AnalyticsController', function() {
|
||||
it('should use the session id', function(done) {
|
||||
this.controller.recordEvent(this.req, this.res)
|
||||
this.AnalyticsManager.recordEvent
|
||||
.calledWith(this.req.sessionID, this.req.params['event'], this.req.body)
|
||||
.calledWith(this.req.sessionID, this.req.params.event, this.req.body)
|
||||
.should.equal(true)
|
||||
done()
|
||||
})
|
||||
@@ -119,10 +119,10 @@ describe('AnalyticsController', function() {
|
||||
this.controller.licences(this.req, this.res)
|
||||
this.InstitutionsAPI.getInstitutionLicences
|
||||
.calledWith(
|
||||
this.req.query['resource_id'],
|
||||
this.req.query['start_date'],
|
||||
this.req.query['end_date'],
|
||||
this.req.query['lag']
|
||||
this.req.query.resource_id,
|
||||
this.req.query.start_date,
|
||||
this.req.query.end_date,
|
||||
this.req.query.lag
|
||||
)
|
||||
.should.equal(true)
|
||||
done()
|
||||
|
||||
Reference in New Issue
Block a user