Skip to content

Commit

Permalink
Whiteblock early termination testing
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohnson committed Oct 9, 2017
1 parent b20bd66 commit 09ccb87
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/fixtures/whitespace/block-termination/actual.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
entry: func() ->
result,
entry2: something,
entry3: reactFunc() ->
<SomeJSX>
</SomeJSX>,
entry4: somethingElse
}

[
func() ->
result,
something
]

call! func() ->
result, arg2
17 changes: 17 additions & 0 deletions test/fixtures/whitespace/block-termination/expected.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import result from "lodash/result";
({ entry: function func() {
return result;
}, entry2: something,
entry3: function reactFunc() {
return <SomeJSX>
</SomeJSX>;
}, entry4: somethingElse
});

[function func() {
return result;
}, something];

call(function func() {
return result;
}, arg2);

0 comments on commit 09ccb87

Please sign in to comment.