File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
crates/vite_static_config/src Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -817,24 +817,22 @@ mod tests {
817817 #[ test]
818818 fn define_config_arrow_no_return_object ( ) {
819819 // Arrow function that doesn't return an object literal
820- assert ! ( parse_js_ts_config(
821- r"
820+ assert ! (
821+ parse_js_ts_config(
822+ r"
822823 export default defineConfig(({ mode }) => {
823824 return someFunction();
824825 });
825826 " ,
826- "ts" ,
827- )
828- . is_none( ) ) ;
827+ "ts" ,
828+ )
829+ . is_none( )
830+ ) ;
829831 }
830832
831833 #[ test]
832834 fn define_config_arrow_empty_body ( ) {
833- assert ! ( parse_js_ts_config(
834- "export default defineConfig(() => {});" ,
835- "ts" ,
836- )
837- . is_none( ) ) ;
835+ assert ! ( parse_js_ts_config( "export default defineConfig(() => {});" , "ts" , ) . is_none( ) ) ;
838836 }
839837
840838 // ── Not analyzable cases (return None) ──────────────────────────────
You can’t perform that action at this time.
0 commit comments