From 05bd894d454978082c623c4d286fa1b67fd73320 Mon Sep 17 00:00:00 2001 From: zinyando Date: Wed, 8 Jun 2016 15:10:27 +0200 Subject: [PATCH] Clean up helpers --- app/tests/helpers/stub-user-notification.js | 6 +++--- app/tests/helpers/wait-to-appear.js | 2 -- app/tests/helpers/wait-to-disappear.js | 2 -- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/app/tests/helpers/stub-user-notification.js b/app/tests/helpers/stub-user-notification.js index 255b8ffd..1df4e2e6 100644 --- a/app/tests/helpers/stub-user-notification.js +++ b/app/tests/helpers/stub-user-notification.js @@ -4,15 +4,15 @@ const userNotification = Ember.Component.extend({ notifications: [], didInsertElement() { - this.eventBus.subscribe('notifyUser', this, 'notifyHandler'); + // this.eventBus.subscribe('notifyUser', this, 'notifyHandler'); }, willDestroyElement() { - this.eventBus.unsubscribe('notifyUser'); + // this.eventBus.unsubscribe('notifyUser'); }, showNotification(msg) { - return msg; + // return msg; } }); diff --git a/app/tests/helpers/wait-to-appear.js b/app/tests/helpers/wait-to-appear.js index 16ec0054..9292d84c 100644 --- a/app/tests/helpers/wait-to-appear.js +++ b/app/tests/helpers/wait-to-appear.js @@ -6,11 +6,9 @@ function isVisible(selector) { function checkVisibility(selector, interval, resolve, visibility) { if (isVisible(selector) === visibility) { - console.log("found in appear"); resolve($(selector)); } else { Ember.run.later(null, function() { - console.log("waiting in appear"); checkVisibility(selector, interval, resolve, visibility); }, interval); } diff --git a/app/tests/helpers/wait-to-disappear.js b/app/tests/helpers/wait-to-disappear.js index 476c7373..8947e6d8 100644 --- a/app/tests/helpers/wait-to-disappear.js +++ b/app/tests/helpers/wait-to-disappear.js @@ -6,11 +6,9 @@ function isVisible(selector) { function checkVisibility(selector, interval, resolve, visibility) { if (isVisible(selector) === visibility) { - console.log("found"); resolve($(selector)); } else { Ember.run.later(null, function() { - console.log("waiting"); checkVisibility(selector, interval, resolve, visibility); }, interval); }