Merge pull request #18225 from overleaf/em-typescript-eslint

Add typescript-eslint rule: no-floating-promises

GitOrigin-RevId: 8c3decdff537c885f5bfeb5250b7805480bc6602
This commit is contained in:
Eric Mc Sween
2024-05-21 15:07:24 -04:00
committed by Copybot
parent 814b085b44
commit 876ee4d967
48 changed files with 1156 additions and 798 deletions

View File

@@ -28,7 +28,7 @@ describe('BetaProgramHandler', function () {
},
}),
'../Analytics/AnalyticsManager': (this.AnalyticsManager = {
setUserPropertyForUser: sinon.stub().resolves(),
setUserPropertyForUserInBackground: sinon.stub(),
}),
},
})
@@ -54,7 +54,7 @@ describe('BetaProgramHandler', function () {
this.call(err => {
expect(err).to.not.exist
sinon.assert.calledWith(
this.AnalyticsManager.setUserPropertyForUser,
this.AnalyticsManager.setUserPropertyForUserInBackground,
this.user_id,
'beta-program',
true
@@ -105,7 +105,7 @@ describe('BetaProgramHandler', function () {
this.call(err => {
expect(err).to.not.exist
sinon.assert.calledWith(
this.AnalyticsManager.setUserPropertyForUser,
this.AnalyticsManager.setUserPropertyForUserInBackground,
this.user_id,
'beta-program',
false