Merge pull request #3496 from overleaf/ae-eslint-dot-notation

Enable the eslint dot-notation rule

GitOrigin-RevId: e11cbad3e8a77a4a60590d3674fbf34feccc5bc9
This commit is contained in:
Alasdair Smith
2020-12-16 10:37:00 +00:00
committed by Copybot
parent 2ff1cf43d6
commit 7cbf2cdd9e
25 changed files with 66 additions and 72 deletions

View File

@@ -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()