diff --git a/test/fixtures/ArrowFunctionExpression/expected.js b/test/fixtures/ArrowFunctionExpression/expected.js index 56cfa31..b4b18d5 100644 --- a/test/fixtures/ArrowFunctionExpression/expected.js +++ b/test/fixtures/ArrowFunctionExpression/expected.js @@ -1,20 +1,12 @@ 'use strict'; -assert(function (v) { - return v + 1; -}); +assert(v => v + 1); -assert(function (v, i) { - return v + i; -}); +assert((v, i) => v + i); -assert(function (v) { - return { even: v, odd: v + 1 }; -}); +assert(v => ({ even: v, odd: v + 1 })); -assert(assert._expr(assert._capt(assert._capt(seven, 'arguments/0/left') === assert._capt((function (v, i) { - return v + i; -})(assert._capt(four, 'arguments/0/right/arguments/0'), assert._capt(five, 'arguments/0/right/arguments/1')), 'arguments/0/right'), 'arguments/0'), { +assert(assert._expr(assert._capt(assert._capt(seven, 'arguments/0/left') === assert._capt(((v, i) => v + i)(assert._capt(four, 'arguments/0/right/arguments/0'), assert._capt(five, 'arguments/0/right/arguments/1')), 'arguments/0/right'), 'arguments/0'), { content: 'assert(seven === ((v, i) => v + i)(four, five))', filepath: 'test/fixtures/ArrowFunctionExpression/fixture.js', line: 9