2017-02-23 20:12:28 -05:00
|
|
|
import componentTest from 'helpers/component-test';
|
|
|
|
|
|
|
|
moduleForComponent('stripe-card', { integration: true });
|
|
|
|
|
2017-03-01 17:35:06 -05:00
|
|
|
window.Stripe = function() {
|
|
|
|
return {
|
|
|
|
elements: function() {
|
|
|
|
return {
|
|
|
|
create: function() {
|
|
|
|
return {
|
2019-08-25 21:24:30 -04:00
|
|
|
mount: function() {},
|
|
|
|
card: function() {}
|
2017-03-01 17:35:06 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-02-23 20:12:28 -05:00
|
|
|
componentTest('stripe card', {
|
2019-08-25 21:24:30 -04:00
|
|
|
template: `{{stripe-card donateAmounts=donateAmounts}}`,
|
|
|
|
|
|
|
|
skip: true,
|
|
|
|
|
|
|
|
beforeEach() {
|
|
|
|
Discourse.SiteSettings.discourse_donations_types = '';
|
|
|
|
this.set('donateAmounts', [{ value: 2 }]);
|
|
|
|
},
|
2017-03-15 22:09:32 -04:00
|
|
|
|
2017-02-23 20:12:28 -05:00
|
|
|
test(assert) {
|
2019-08-25 21:24:30 -04:00
|
|
|
assert.ok(true);
|
2017-02-23 20:12:28 -05:00
|
|
|
}
|
|
|
|
});
|