mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-07-07 15:02:23 +00:00
component test runs but does not really test anything
This commit is contained in:
parent
dc36487eec
commit
751274244d
@ -2,31 +2,23 @@ import componentTest from 'helpers/component-test';
|
|||||||
|
|
||||||
moduleForComponent('stripe-card', { integration: true });
|
moduleForComponent('stripe-card', { integration: true });
|
||||||
|
|
||||||
|
window.Stripe = function() {
|
||||||
|
return {
|
||||||
|
elements: function() {
|
||||||
|
return {
|
||||||
|
create: function() {
|
||||||
|
return {
|
||||||
|
mount: function() {}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
componentTest('stripe card', {
|
componentTest('stripe card', {
|
||||||
template: `{{stripe-card}}`,
|
template: `{{stripe-card}}`,
|
||||||
|
|
||||||
setup() {
|
|
||||||
// var spy = this.spy();
|
|
||||||
sandbox.spy();
|
|
||||||
},
|
|
||||||
|
|
||||||
test(assert) {
|
test(assert) {
|
||||||
assert.ok(true);
|
assert.ok(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// componentTest("should call all subscribers when exceptions", function () {
|
|
||||||
// var myAPI = { method: function () {} };
|
|
||||||
//
|
|
||||||
// var spy = this.spy();
|
|
||||||
// var mock = this.mock(myAPI);
|
|
||||||
// mock.expects("method").once().throws();
|
|
||||||
//
|
|
||||||
// PubSub.subscribe("message", myAPI.method);
|
|
||||||
// PubSub.subscribe("message", spy);
|
|
||||||
// PubSub.publishSync("message", undefined);
|
|
||||||
//
|
|
||||||
// mock.verify();
|
|
||||||
// ok(spy.calledOnce);
|
|
||||||
// });
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user