From 2f56c6e1be30853a9b6c76e6d229116c019e4ccc Mon Sep 17 00:00:00 2001 From: John Cowen Date: Fri, 15 Jun 2018 12:47:12 +0100 Subject: [PATCH] Fix linting typo, caused the selection of future services to break --- ui-v2/app/controllers/dc/intentions/edit.js | 4 ++-- ui-v2/app/templates/dc/intentions/-form.hbs | 4 ++-- .../dc/intentions/form-select.feature | 23 +++++++++++++++++++ .../steps/dc/intentions/form-select-steps.js | 10 ++++++++ ui-v2/tests/helpers/set-cookies.js | 3 +++ ui-v2/tests/pages.js | 2 ++ ui-v2/tests/pages/dc/intentions/edit.js | 8 +++++++ ui-v2/tests/steps.js | 16 +++++++++++-- 8 files changed, 64 insertions(+), 6 deletions(-) create mode 100644 ui-v2/tests/acceptance/dc/intentions/form-select.feature create mode 100644 ui-v2/tests/acceptance/steps/dc/intentions/form-select-steps.js create mode 100644 ui-v2/tests/pages/dc/intentions/edit.js diff --git a/ui-v2/app/controllers/dc/intentions/edit.js b/ui-v2/app/controllers/dc/intentions/edit.js index a9f8307b2..0773435c3 100644 --- a/ui-v2/app/controllers/dc/intentions/edit.js +++ b/ui-v2/app/controllers/dc/intentions/edit.js @@ -39,8 +39,8 @@ export default Controller.extend({ change: function(e, value, _target) { // normalize back to standard event const target = e.target || { ..._target, ...{ name: e, value: value } }; - let name, - selected = target.value; + let name, selected; + name = selected = target.value; // TODO: // linter needs this here? let match; diff --git a/ui-v2/app/templates/dc/intentions/-form.hbs b/ui-v2/app/templates/dc/intentions/-form.hbs index 8228bf97e..a00d1d5ca 100644 --- a/ui-v2/app/templates/dc/intentions/-form.hbs +++ b/ui-v2/app/templates/dc/intentions/-form.hbs @@ -1,6 +1,6 @@
-