Skip to content

Commit

Permalink
chore(babel-plugin-espower): adjust with ArrowFunctionExpression outp…
Browse files Browse the repository at this point in the history
…ut format change
  • Loading branch information
twada committed Oct 31, 2015
1 parent 4fe36d1 commit 0e95022
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions test/fixtures/ArrowFunctionExpression/expected.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0e95022

Please sign in to comment.