--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/method-chain/test.js --- # Input ```js method().then(x => x) ["abc"](x => x) [abc](x => x); ({}.a().b()); ({}).a().b(); ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -3,5 +3,5 @@ ["abc"]((x) => x) [abc]((x) => x); -({}.a().b()); -({}.a().b()); +({}).a().b(); +({}).a().b(); ``` # Output ```js method() .then((x) => x) ["abc"]((x) => x) [abc]((x) => x); ({}).a().b(); ({}).a().b(); ```