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

add billing to confirm dialog

This commit is contained in:
Rimian Perkins
2019-09-12 18:51:40 +10:00
parent 926aee79bb
commit 22af03a42e
4 changed files with 47 additions and 17 deletions
@@ -3,7 +3,7 @@ import componentTest from "helpers/component-test";
moduleForComponent("stripe-card", { integration: true });
componentTest("Discourse Patrons stripe card success", {
template: `{{stripe-card handleConfirmStripeCard=onSubmit}}`,
template: `{{stripe-card handleConfirmStripeCard=onSubmit billing=billing}}`,
beforeEach() {
window.Stripe = () => {
@@ -26,6 +26,15 @@ componentTest("Discourse Patrons stripe card success", {
}
};
};
this.set(
"billing",
Ember.Object.create({
name: "",
email: "",
phone: ""
})
);
},
async test(assert) {