Merge pull request #5344 from overleaf/jpa-no-callback-literal

[web] fix eslint violations for node/no-callback-literal

GitOrigin-RevId: 8d6bb1398b3db2794bf1b2f97cd6d2886f2b4b0a
This commit is contained in:
Jakob Ackermann
2021-10-07 08:04:30 +00:00
committed by Copybot
parent cc8faa0535
commit 12890edd14
5 changed files with 14 additions and 11 deletions
@@ -21,9 +21,9 @@ describe('FileStoreHandler', function () {
}
this.writeStream = {
my: 'writeStream',
on(type, cb) {
on(type, fn) {
if (type === 'response') {
cb({ statusCode: 200 })
fn({ statusCode: 200 })
}
},
}
@@ -200,9 +200,9 @@ describe('FileStoreHandler', function () {
describe('when upload fails', function () {
beforeEach(function () {
this.writeStream.on = function (type, cb) {
this.writeStream.on = function (type, fn) {
if (type === 'response') {
cb({ statusCode: 500 })
fn({ statusCode: 500 })
}
}
})