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

DEV: Prefix all test names (#238)

This commit is contained in:
Jarek Radosz
2024-09-18 01:49:28 +02:00
committed by GitHub
parent ef820ca2e0
commit 937d099692
6 changed files with 8 additions and 8 deletions
@@ -0,0 +1,17 @@
import { setupTest } from "ember-qunit";
import { module, test } from "qunit";
import { formatCurrency } from "discourse/plugins/discourse-subscriptions/discourse/helpers/format-currency";
module("Subscriptions | Unit | Helper | format-currency", function (hooks) {
setupTest(hooks);
test("it formats USD correctly", function (assert) {
let result = formatCurrency(["USD", 338.2]);
assert.equal(result, "$338.20", "Formats USD correctly");
});
test("it rounds correctly", function (assert) {
let result = formatCurrency(["USD", 338.289]);
assert.equal(result, "$338.29", "Rounds correctly");
});
});