Commit daa7e56f authored by Vitaly Slobodin's avatar Vitaly Slobodin Committed by Douglas Barbosa Alexandre

Address review comments

parent 3c21e1d2
......@@ -13,7 +13,7 @@
.avatar-container.rect-avatar.s96.home-panel-avatar.append-right-default.float-none.mx-auto.mb-4.mt-1.rounded.border
= group_icon(@group, class: 'avatar avatar-tile s96', width: 96, height: 96, alt: @group.name)
%h4.h4
%h4
- plan_link = plan.about_page_href ? link_to(plan.code.titleize, plan.about_page_href) : plan.name
- if namespace == current_user.namespace
= s_("BillingPlans|@%{user_name} you are currently on the %{plan_link} plan.").html_safe % { user_name: current_user.username, plan_link: plan_link }
......
{
"plan": { "code": "bronze", "name": "Bronze", "trial": null, "upgradable": true },
"usage": { "seats_in_subscription": 0, "seats_in_use": 1, "max_seats_used": 0, "seats_owed": 0 },
"billing": {
"subscription_start_date": "2019-07-31",
"subscription_end_date": null,
"trial_ends_on": null
}
}
......@@ -75,6 +75,10 @@ describe('EE billings subscription module mutations', () => {
expect(getStateTableValues(tableKey)).toMatchSnapshot();
});
});
it('sets table values', () => {
expect(getStateTableValues('free')).toMatchSnapshot();
});
});
describe(types.RECEIVE_SUBSCRIPTION_ERROR, () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment