1
0
mirror of synced 2026-08-03 21:56:54 +00:00

format with prettier

This commit is contained in:
Rimian Perkins
2019-08-27 20:37:20 +10:00
parent 675c3d27ba
commit 0cb3a9acde
16 changed files with 519 additions and 409 deletions
@@ -1,8 +1,8 @@
import componentTest from 'helpers/component-test';
import componentTest from "helpers/component-test";
moduleForComponent('donation-form', { integration: true });
moduleForComponent("donation-form", { integration: true });
componentTest('donation form', {
componentTest("donation form", {
template: `{{donation-form}}`,
test(assert) {
@@ -1,26 +1,26 @@
import componentTest from 'helpers/component-test';
import componentTest from "helpers/component-test";
moduleForComponent('donation-row', { integration: true });
moduleForComponent("donation-row", { integration: true });
componentTest('donation-row', {
componentTest("donation-row", {
template: `{{donation-row currency=3 amount=21 period='monthly'}}`,
test(assert) {
assert.equal(find('.donation-row-currency').text(), '3');
assert.equal(find('.donation-row-amount').text(), '21');
assert.equal(find('.donation-row-period').text(), 'monthly');
},
assert.equal(find(".donation-row-currency").text(), "3");
assert.equal(find(".donation-row-amount").text(), "21");
assert.equal(find(".donation-row-period").text(), "monthly");
}
});
componentTest('donation-row cancels subscription', {
componentTest("donation-row cancels subscription", {
template: `{{donation-row currentUser=currentUser subscription=subscription}}`,
beforeEach() {
this.set('currentUser', true);
this.set('subscription', true);
this.set("currentUser", true);
this.set("subscription", true);
},
async test(assert) {
assert.ok(find('.donation-row-subscription').length);
},
assert.ok(find(".donation-row-subscription").length);
}
});
@@ -1,6 +1,6 @@
import componentTest from 'helpers/component-test';
import componentTest from "helpers/component-test";
moduleForComponent('stripe-card', { integration: true });
moduleForComponent("stripe-card", { integration: true });
window.Stripe = function() {
return {
@@ -13,18 +13,18 @@ window.Stripe = function() {
};
}
};
},
}
};
};
componentTest('stripe card', {
componentTest("stripe card", {
template: `{{stripe-card donateAmounts=donateAmounts}}`,
skip: true,
beforeEach() {
Discourse.SiteSettings.discourse_donations_types = '';
this.set('donateAmounts', [{ value: 2 }]);
Discourse.SiteSettings.discourse_donations_types = "";
this.set("donateAmounts", [{ value: 2 }]);
},
test(assert) {