pretty code
This commit is contained in:
@@ -6,11 +6,17 @@ componentTest("donation form has content", {
|
||||
template: `{{donation-form}}`,
|
||||
|
||||
beforeEach() {
|
||||
this.registry.register('component:stripe-card', Ember.Component.extend({ tagName: 'dummy-component-tag' }));
|
||||
this.registry.register(
|
||||
"component:stripe-card",
|
||||
Ember.Component.extend({ tagName: "dummy-component-tag" })
|
||||
);
|
||||
},
|
||||
|
||||
async test(assert) {
|
||||
assert.ok(find('#payment-form').length, "The form renders");
|
||||
assert.ok(find('dummy-component-tag').length, "The stripe component renders");
|
||||
assert.ok(find("#payment-form").length, "The form renders");
|
||||
assert.ok(
|
||||
find("dummy-component-tag").length,
|
||||
"The stripe component renders"
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -8,7 +8,11 @@ componentTest("donation-row", {
|
||||
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");
|
||||
assert.equal(
|
||||
find(".donation-row-period").text(),
|
||||
"monthly",
|
||||
"It has a period"
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -21,6 +25,9 @@ componentTest("donation-row cancels subscription", {
|
||||
},
|
||||
|
||||
async test(assert) {
|
||||
assert.ok(find(".donation-row-subscription").length, "It has a subscription");
|
||||
assert.ok(
|
||||
find(".donation-row-subscription").length,
|
||||
"It has a subscription"
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user