Merge pull request #23547 from overleaf/ii-flexible-group-licensing-error-assist-2
[web] Hide flexible licensing buttons for pending plans (fix) GitOrigin-RevId: ce5b4ce4138ed7a029b840a87c5498227e3204f4
This commit is contained in:
@@ -4,13 +4,20 @@ import User from './helpers/User.mjs'
|
||||
import Institution from './helpers/Institution.mjs'
|
||||
import Subscription from './helpers/Subscription.mjs'
|
||||
import Publisher from './helpers/Publisher.mjs'
|
||||
import sinon from 'sinon'
|
||||
import RecurlyClient from '../../../app/src/Features/Subscription/RecurlyClient.js'
|
||||
|
||||
describe('UserMembershipAuthorization', function () {
|
||||
beforeEach(function (done) {
|
||||
this.user = new User()
|
||||
sinon.stub(RecurlyClient.promises, 'getSubscription').resolves({})
|
||||
async.series([this.user.ensureUserExists.bind(this.user)], done)
|
||||
})
|
||||
|
||||
afterEach(function () {
|
||||
RecurlyClient.promises.getSubscription.restore()
|
||||
})
|
||||
|
||||
describe('group', function () {
|
||||
beforeEach(function (done) {
|
||||
this.subscription = new Subscription({
|
||||
|
||||
Reference in New Issue
Block a user