1
0
mirror of synced 2026-08-05 22:56:55 +00:00

format the amount in admin

This commit is contained in:
Rimian Perkins
2019-10-31 11:41:01 +11:00
parent 842fac9176
commit ced4d1c786
8 changed files with 32 additions and 17 deletions
+11 -1
View File
@@ -12,6 +12,16 @@ QUnit.test("subscriptionRate", assert => {
assert.equal(
plan.get("subscriptionRate"),
"$23.99 AUD / month",
"it should return the formatted subscription rate"
"it returns the formatted subscription rate"
);
});
QUnit.test("amountDollars", assert => {
const plan = Plan.create({ amount: 2399 });
assert.equal(
plan.get("amountDollars"),
23.99,
"it returns the formatted amount"
);
});