Merge pull request #14696 from overleaf/jpa-lean-mongo-queries

[web] use lean mongo queries

GitOrigin-RevId: 5c9e2cddb2c45835dd9bb87c31b6e9d2b91873fd
This commit is contained in:
Jakob Ackermann
2023-09-07 13:53:40 +02:00
committed by Copybot
parent 7b554f8ecf
commit e172c67267
12 changed files with 82 additions and 67 deletions

View File

@@ -127,7 +127,7 @@ describe('BetaProgramController', function () {
describe('optInPage', function () {
beforeEach(function () {
this.UserGetter.getUser.callsArgWith(1, null, this.user)
this.UserGetter.getUser.yields(null, this.user)
})
it('should render the opt-in page', function () {
@@ -139,7 +139,7 @@ describe('BetaProgramController', function () {
describe('when UserGetter.getUser produces an error', function () {
beforeEach(function () {
this.UserGetter.getUser.callsArgWith(1, new Error('woops'))
this.UserGetter.getUser.yields(new Error('woops'))
})
it('should not render the opt-in page', function () {