From b4f0588d7c7487b88414a2fd4a04bf4b1e91fc8a Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Thu, 6 Jul 2017 16:17:16 +0200 Subject: [PATCH] Split "return" keyword and warn() invocations This messes up the debug macros Babel plugin apparently... --- addon/utils/bind-data-test-attributes.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/addon/utils/bind-data-test-attributes.js b/addon/utils/bind-data-test-attributes.js index bf87d381..6d800e38 100644 --- a/addon/utils/bind-data-test-attributes.js +++ b/addon/utils/bind-data-test-attributes.js @@ -20,9 +20,11 @@ export default function bindDataTestAttributes(component) { let message = `ember-test-selectors could not bind data-test-* properties on ${component} ` + `automatically because tagName is empty.`; - return warn(message, false, { + warn(message, false, { id: 'ember-test-selectors.empty-tag-name', }); + + return; } let computedBindings = component.attributeBindings && component.attributeBindings.isDescriptor; @@ -30,9 +32,11 @@ export default function bindDataTestAttributes(component) { let message = `ember-test-selectors could not bind data-test-* properties on ${component} ` + `automatically because attributeBindings is a computed property.`; - return warn(message, false, { + warn(message, false, { id: 'ember-test-selectors.computed-attribute-bindings', }); + + return; } let attributeBindings = component.getWithDefault('attributeBindings', []);