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:
@@ -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 })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user