---
source: crates/rome_formatter_test/src/snapshot_builder.rs
info:
test_file: jsx/do/do.js
---
# Input
```js
{do {
1
}}
```
# Prettier differences
```diff
--- Prettier
+++ Rome
@@ -1,5 +1,5 @@
{do {
- 1;
+ 1
}}
-
;
+
```
# Output
```js
{do {
1
}}
```
# Errors
```
do.js:2:4 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× expected `}` but instead found `do`
1 │
> 2 │ {do {
│ ^^
3 │ 1
4 │ }}
i Remove do
do.js:4:4 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Unexpected token. Did you mean `{'}'}` or `}`?
2 │ {do {
3 │ 1
> 4 │ }}
│ ^
5 │
6 │
```