--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/module/call_expression.js --- # Input ```js useEffect(() => { }, [a, b]) useMemo(() => { return { d, e } }, [a, b]) useMemo(() => { } // some comment , [a, b] ) useEffect(() => { if (clipboardStatus !== "normal") { setClipboardStatus("normal"); } }, [formatter_ir]); test.expect(t => { t.true(a) }) test.expect(t => { t.true(a) }, false) test.something(t => { t.true() }, context => { context.flush() }) // trailing separator omitted test.expect(t => { t.true(a) }, false,) test.expect(t => { t.true(a) }, false, // comment ) ``` ============================= # Outputs ## Output 1 ----- Indent style: Tab Line width: 80 Quote style: Double Quotes Quote properties: As needed Trailing comma: All Semicolons: Always ----- ```js useEffect(() => {}, [a, b]); useMemo(() => { return { d, e, }; }, [a, b]); useMemo( () => {}, // some comment [a, b], ); useEffect(() => { if (clipboardStatus !== "normal") { setClipboardStatus("normal"); } }, [formatter_ir]); test.expect((t) => { t.true(a); }); test.expect((t) => { t.true(a); }, false); test.something( (t) => { t.true(); }, (context) => { context.flush(); }, ); // trailing separator omitted test.expect((t) => { t.true(a); }, false); test.expect( (t) => { t.true(a); }, false, // comment ); ```