Merge pull request #6393 from overleaf/ta-backfill-user-properties

Backfill User Properties

GitOrigin-RevId: ea2ffeaaf71d5ce41c76a1bfb2f0014006ef0d08
This commit is contained in:
Jakob Ackermann
2022-01-26 09:03:06 +00:00
committed by Copybot
parent b2e18c92a6
commit cfaec97a3d
5 changed files with 85 additions and 17 deletions
@@ -105,15 +105,11 @@ describe('FeaturesUpdater', function () {
this.Modules = {
promises: { hooks: { fire: sinon.stub().resolves() } },
}
this.FeaturesHelper = {
mergeFeatures: sinon.stub().callsFake((a, b) => ({ ...a, ...b })),
}
this.FeaturesUpdater = SandboxedModule.require(MODULE_PATH, {
requires: {
'./UserFeaturesUpdater': this.UserFeaturesUpdater,
'./SubscriptionLocator': this.SubscriptionLocator,
'./FeaturesHelper': this.FeaturesHelper,
'@overleaf/settings': this.Settings,
'../Referal/ReferalFeatures': this.ReferalFeatures,
'./V1SubscriptionManager': this.V1SubscriptionManager,