1
0
mirror of synced 2026-08-04 22:26:56 +00:00

rm redundant component

This commit is contained in:
Rimian Perkins
2019-09-12 09:28:01 +10:00
parent dfba5471f9
commit 55bab5d936
3 changed files with 0 additions and 173 deletions
@@ -1,33 +0,0 @@
import componentTest from "helpers/component-test";
moduleForComponent("donation-row", { integration: true });
componentTest("Discourse Patrons donation-row", {
template: `{{donation-row currency=3 amount=21 period='monthly'}}`,
test(assert) {
assert.equal(find(".donation-row-currency").text(), "3", "It has currency");
assert.equal(find(".donation-row-amount").text(), "21", "It has an amount");
assert.equal(
find(".donation-row-period").text(),
"monthly",
"It has a period"
);
}
});
componentTest("donation-row cancels subscription", {
template: `{{donation-row currentUser=currentUser subscription=subscription}}`,
beforeEach() {
this.set("currentUser", true);
this.set("subscription", true);
},
async test(assert) {
assert.ok(
find(".donation-row-subscription").length,
"It has a subscription"
);
}
});