forked from prettier/prettier
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
- Loading branch information
Showing
6 changed files
with
98 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
tests/format/js/identifier/for-of/__snapshots__/jsfmt.spec.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`await.js format 1`] = ` | ||
====================================options===================================== | ||
parsers: ["babel", "typescript"] | ||
printWidth: 80 | ||
| printWidth | ||
=====================================input====================================== | ||
async function a() { | ||
for await((let).a of foo); | ||
for await((let)[a] of foo); | ||
for await((let)()[a] of foo); | ||
} | ||
=====================================output===================================== | ||
async function a() { | ||
for await ((let).a of foo); | ||
for await ((let)[a] of foo); | ||
for await ((let)()[a] of foo); | ||
} | ||
================================================================================ | ||
`; | ||
|
||
exports[`let.js format 1`] = ` | ||
====================================options===================================== | ||
parsers: ["babel", "typescript"] | ||
printWidth: 80 | ||
| printWidth | ||
=====================================input====================================== | ||
for ((let) of foo); | ||
for (foo of let); | ||
for (foo of let.a); | ||
for (foo of let[a]); | ||
for ((let.a) of foo); | ||
for ((let[a]) of foo); | ||
for ((let)().a of foo); | ||
for (letFoo of foo); | ||
for ((let.a) in foo); | ||
for ((let[a]) in foo); | ||
=====================================output===================================== | ||
for ((let) of foo); | ||
for (foo of let); | ||
for (foo of let.a); | ||
for (foo of let[a]); | ||
for ((let).a of foo); | ||
for ((let)[a] of foo); | ||
for ((let)().a of foo); | ||
for (letFoo of foo); | ||
for (let.a in foo); | ||
for ((let)[a] in foo); | ||
================================================================================ | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
async function a() { | ||
for await((let).a of foo); | ||
for await((let)[a] of foo); | ||
for await((let)()[a] of foo); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
run_spec(__dirname, [ | ||
"babel", | ||
// "flow", | ||
"typescript", | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
for ((let) of foo); | ||
for (foo of let); | ||
for (foo of let.a); | ||
for (foo of let[a]); | ||
for ((let.a) of foo); | ||
for ((let[a]) of foo); | ||
for ((let)().a of foo); | ||
for (letFoo of foo); | ||
|
||
for ((let.a) in foo); | ||
for ((let[a]) in foo); |