Skip to content

Commit

Permalink
Add unit test for UpdateExpression in safe chain
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohnson committed Sep 25, 2017
1 parent d62a44f commit a246ed9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/fixtures/safe-member-expression/update/actual.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a?[b++]?.c
3 changes: 3 additions & 0 deletions test/fixtures/safe-member-expression/update/expected.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var _a;

a == null ? void 0 : (_a = a[b++]) == null ? void 0 : _a.c;

0 comments on commit a246ed9

Please sign in to comment.