Files
discourse-subscriptions/test/javascripts/components/donation-form-test.es6
T

23 lines
544 B
JavaScript
Raw Normal View History

2019-08-27 20:37:20 +10:00
import componentTest from "helpers/component-test";
2019-08-27 19:56:55 +10:00
2019-08-27 20:37:20 +10:00
moduleForComponent("donation-form", { integration: true });
2019-08-27 19:56:55 +10:00
2019-08-27 22:05:30 +10:00
componentTest("donation form has content", {
2019-08-27 19:56:55 +10:00
template: `{{donation-form}}`,
beforeEach() {
2019-08-28 18:36:19 +10:00
this.registry.register(
"component:stripe-card",
Ember.Component.extend({ tagName: "dummy-component-tag" })
);
},
2019-08-27 22:05:30 +10:00
async test(assert) {
2019-08-28 18:36:19 +10:00
assert.ok(find("#payment-form").length, "The form renders");
assert.ok(
find("dummy-component-tag").length,
"The stripe component renders"
);
2019-08-27 19:56:55 +10:00
}
});