From 751274244d6177e97cec90c5ba5a82ae9df784c3 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Thu, 2 Mar 2017 09:35:06 +1100 Subject: [PATCH] component test runs but does not really test anything --- .../components/stripe-card-test.js.es6 | 36 ++++++++----------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/test/javascripts/components/stripe-card-test.js.es6 b/test/javascripts/components/stripe-card-test.js.es6 index f8bb839..2156a1b 100644 --- a/test/javascripts/components/stripe-card-test.js.es6 +++ b/test/javascripts/components/stripe-card-test.js.es6 @@ -2,31 +2,23 @@ import componentTest from 'helpers/component-test'; moduleForComponent('stripe-card', { integration: true }); +window.Stripe = function() { + return { + elements: function() { + return { + create: function() { + return { + mount: function() {} + }; + } + }; + }, + }; +}; + 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); -// });