mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02:00
Merge pull request #14696 from overleaf/jpa-lean-mongo-queries
[web] use lean mongo queries GitOrigin-RevId: 5c9e2cddb2c45835dd9bb87c31b6e9d2b91873fd
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user