From 8cabbc7ac90196580f2b7ed8e0c1954d515ea567 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Fri, 24 Feb 2017 12:12:28 +1100 Subject: [PATCH] initital test --- .../components/stripe-card-test.js.es6 | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 test/javascripts/components/stripe-card-test.js.es6 diff --git a/test/javascripts/components/stripe-card-test.js.es6 b/test/javascripts/components/stripe-card-test.js.es6 new file mode 100644 index 0000000..f8bb839 --- /dev/null +++ b/test/javascripts/components/stripe-card-test.js.es6 @@ -0,0 +1,32 @@ +import componentTest from 'helpers/component-test'; + +moduleForComponent('stripe-card', { integration: true }); + +componentTest('stripe card', { + template: `{{stripe-card}}`, + + setup() { + // var spy = this.spy(); + sandbox.spy(); + }, + + test(assert) { + 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); +// });