New plans page: Show initial price value upon first render for group price data (#7974)

* New plans page: Show initial price value upon first render

* fix wrong test on SubscriptionController and add new tests on SubscriptionHelper

GitOrigin-RevId: a339a97cff2df0728ba35885af8953c8a0e0b7c8
This commit is contained in:
M Fahru
2022-05-19 05:12:48 -04:00
committed by Copybot
parent 22b75230ff
commit e64becc00d
6 changed files with 529 additions and 7 deletions
@@ -122,11 +122,15 @@ describe('SubscriptionController', function () {
getAssignment: sinon.stub().resolves({ variant: 'default' }),
},
}
this.SubscriptionHelper = {
generateInitialLocalizedGroupPrice: sinon.stub(),
}
this.SubscriptionController = SandboxedModule.require(modulePath, {
requires: {
'../SplitTests/SplitTestHandler': this.SplitTestV2Hander,
'../Authentication/SessionManager': this.SessionManager,
'./SubscriptionHandler': this.SubscriptionHandler,
'./SubscriptionHelper': this.SubscriptionHelper,
'./PlansLocator': this.PlansLocator,
'./SubscriptionViewModelBuilder': this.SubscriptionViewModelBuilder,
'./LimitationsManager': this.LimitationsManager,