diff --git a/modules/ve-mw/tests/.eslintrc.json b/modules/ve-mw/tests/.eslintrc.json index f0920986db..0f04043cb0 100644 --- a/modules/ve-mw/tests/.eslintrc.json +++ b/modules/ve-mw/tests/.eslintrc.json @@ -18,8 +18,7 @@ ], "indent": "off", "no-jquery/no-html": "off", - "no-jquery/no-parse-html-literal": "off", - "implicit-arrow-linebreak": "warn" + "no-jquery/no-parse-html-literal": "off" }, "parserOptions": { "ecmaVersion": 2018 diff --git a/modules/ve-mw/tests/ve.test.utils.js b/modules/ve-mw/tests/ve.test.utils.js index 51157d25c4..43fde14214 100644 --- a/modules/ve-mw/tests/ve.test.utils.js +++ b/modules/ve-mw/tests/ve.test.utils.js @@ -138,9 +138,9 @@ * * @inheritdoc ve#getDomElementSummary */ - ve.getDomElementSummary = ( element, includeHtml ) => + ve.getDomElementSummary = function ( element, includeHtml ) { // "Parent" method - getDomElementSummaryCore( element, includeHtml, ( name, value ) => { + return getDomElementSummaryCore( element, includeHtml, ( name, value ) => { if ( name === 'data-mw' ) { const obj = JSON.parse( value ), html = ve.getProp( obj, 'body', 'html' ); @@ -151,4 +151,5 @@ } return value; } ); + }; }