mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 11:01:56 +02:00
Add promo notifications for AI assist (#26514)
* Add promo notifications for AI assist * format pug GitOrigin-RevId: 8895145e1e5dcd8e28f29bf2601a4bd21456a407
This commit is contained in:
committed by
Copybot
parent
f53a13ae1e
commit
fda96b2fdf
@@ -145,6 +145,18 @@ describe('ProjectListController', function () {
|
||||
},
|
||||
}
|
||||
|
||||
ctx.PermissionsManager = {
|
||||
promises: {
|
||||
checkUserPermissions: sinon.stub().resolves(true),
|
||||
},
|
||||
}
|
||||
|
||||
ctx.SubscriptionLocator = {
|
||||
promises: {
|
||||
getUsersSubscription: sinon.stub().resolves({}),
|
||||
},
|
||||
}
|
||||
|
||||
vi.doMock('mongodb-legacy', () => ({
|
||||
default: { ObjectId },
|
||||
}))
|
||||
@@ -250,6 +262,19 @@ describe('ProjectListController', function () {
|
||||
default: ctx.TutorialHandler,
|
||||
}))
|
||||
|
||||
vi.doMock(
|
||||
'../../../../app/src/Features/Authorization/PermissionsManager',
|
||||
() => ({
|
||||
default: ctx.PermissionsManager,
|
||||
})
|
||||
)
|
||||
vi.doMock(
|
||||
'../../../../app/src/Features/Subscription/SubscriptionLocator',
|
||||
() => ({
|
||||
default: ctx.SubscriptionLocator,
|
||||
})
|
||||
)
|
||||
|
||||
ctx.ProjectListController = (await import(MODULE_PATH)).default
|
||||
|
||||
ctx.req = {
|
||||
|
||||
Reference in New Issue
Block a user