Merge pull request #3942 from overleaf/prettier-trailing-comma

Set Prettier's "trailingComma" setting to "es5"

GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
This commit is contained in:
Alf Eaton
2021-04-27 08:52:58 +01:00
committed by Copybot
parent 15011a9982
commit 1be43911b4
877 changed files with 20093 additions and 20064 deletions
@@ -13,35 +13,35 @@ describe('BetaProgramController', function () {
_id: (this.user_id = 'a_simple_id'),
email: 'user@example.com',
features: {},
betaProgram: false
betaProgram: false,
}
this.req = {
query: {},
session: {
user: this.user
}
user: this.user,
},
}
this.BetaProgramController = SandboxedModule.require(modulePath, {
requires: {
'./BetaProgramHandler': (this.BetaProgramHandler = {
optIn: sinon.stub(),
optOut: sinon.stub()
optOut: sinon.stub(),
}),
'../User/UserGetter': (this.UserGetter = {
getUser: sinon.stub()
getUser: sinon.stub(),
}),
'settings-sharelatex': (this.settings = {
languages: {}
languages: {},
}),
'../Authentication/AuthenticationController': (this.AuthenticationController = {
getLoggedInUserId: sinon.stub().returns(this.user._id)
})
}
getLoggedInUserId: sinon.stub().returns(this.user._id),
}),
},
})
this.res = {
send: sinon.stub(),
redirect: sinon.stub(),
render: sinon.stub()
render: sinon.stub(),
}
this.next = sinon.stub()
})
@@ -15,19 +15,19 @@ describe('BetaProgramHandler', function () {
email: 'user@example.com',
features: {},
betaProgram: false,
save: sinon.stub().callsArgWith(0, null)
save: sinon.stub().callsArgWith(0, null),
}
this.handler = SandboxedModule.require(modulePath, {
requires: {
'@overleaf/metrics': {
inc: sinon.stub()
inc: sinon.stub(),
},
'../User/UserUpdater': (this.UserUpdater = {
promises: {
updateUser: sinon.stub().resolves()
}
})
}
updateUser: sinon.stub().resolves(),
},
}),
},
})
})