format with prettier
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user