Skip to content

Commit

Permalink
fix(shorebird_cli): fix price in command (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanoltman authored Jul 10, 2023
1 parent 9e417c2 commit 44a4173
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ ${Table(
${styleBold.wrap('${lightCyan.wrap(remainingPatchInstalls)} patch installs remaining in the current billing period.')}
Current Billing Period: ${lightCyan.wrap(DateFormat.yMMMd().format(currentPeriodStart))} - ${lightCyan.wrap(DateFormat.yMMMd().format(currentPeriodEnd))}
Month-to-date cost: ${lightCyan.wrap('\$${currencyFormatter.format(currentPeriodCost * 100.0)}')}
Month-to-date cost: ${lightCyan.wrap('\$${currencyFormatter.format(currentPeriodCost / 100.0)}')}
${styleBold.wrap('*Usage data is not reported in real-time and may be delayed by up to 48 hours.')}''';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ void main() {
test('exits with code 0 when usage is fetched.', () async {
final usage = GetUsageResponse(
plan: const ShorebirdPlan(
name: 'Hobby',
monthlyCost: 0,
name: 'Team',
monthlyCost: 2000,
patchInstallLimit: 1000,
maxTeamSize: 1,
),
Expand All @@ -87,7 +87,7 @@ void main() {
),
],
patchInstallLimit: 20000,
currentPeriodCost: 0,
currentPeriodCost: 2000,
currentPeriodStart: DateTime(2023),
currentPeriodEnd: DateTime(2023, 2),
);
Expand All @@ -104,7 +104,7 @@ void main() {
any(
that: contains('''
You are on the ${lightCyan.wrap('Hobby')} plan.
You are on the ${lightCyan.wrap('Team')} plan.
┌────────────┬────────────────┐
│ App │ Patch Installs │
Expand All @@ -116,10 +116,10 @@ You are on the ${lightCyan.wrap('Hobby')} plan.
│ Total │ 84 │
└────────────┴────────────────┘
${styleBold.wrap('${lightCyan.wrap('${20000 - 84}')} patch installs remaining in the current billing period.')}
${styleBold.wrap('${lightCyan.wrap('19916')} patch installs remaining in the current billing period.')}
Current Billing Period: ${lightCyan.wrap(DateFormat.yMMMd().format(usage.currentPeriodStart))} - ${lightCyan.wrap(DateFormat.yMMMd().format(usage.currentPeriodEnd))}
Month-to-date cost: ${lightCyan.wrap(r'$0.00')}
Month-to-date cost: ${lightCyan.wrap(r'$20.00')}
${styleBold.wrap('*Usage data is not reported in real-time and may be delayed by up to 48 hours.')}'''),
),
Expand Down

0 comments on commit 44a4173

Please sign in to comment.