--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/classes/ternary.js --- # Input ```js if (1) (class {}) ? 1 : 2; ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -1 +1 @@ -if (1) (class {} ? 1 : 2); +if (1) (class {}) ? 1 : 2; ``` # Output ```js if (1) (class {}) ? 1 : 2; ```