From f2b1ce174f2897d1c2873c84190030a209d6f736 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 28 Dec 2024 09:38:39 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../ast_passes/peephole_substitute_alternate_syntax.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/oxc_minifier/src/ast_passes/peephole_substitute_alternate_syntax.rs b/crates/oxc_minifier/src/ast_passes/peephole_substitute_alternate_syntax.rs index b798e560f34dba..7cfcb22003af11 100644 --- a/crates/oxc_minifier/src/ast_passes/peephole_substitute_alternate_syntax.rs +++ b/crates/oxc_minifier/src/ast_passes/peephole_substitute_alternate_syntax.rs @@ -1174,8 +1174,14 @@ mod test { test("var x; 'undefined' === typeof x", "var x; x === undefined"); test("var x; 'undefined' == typeof x", "var x; x === undefined"); - test("var x; function foo() { typeof x !== 'undefined' }", "var x; function foo() { x !== undefined }"); - test("typeof x !== 'undefined'; function foo() { var x }", "typeof x < 'u'; function foo() { var x }"); + test( + "var x; function foo() { typeof x !== 'undefined' }", + "var x; function foo() { x !== undefined }", + ); + test( + "typeof x !== 'undefined'; function foo() { var x }", + "typeof x < 'u'; function foo() { var x }", + ); test("typeof x !== 'undefined'; { var x }", "x !== undefined; { var x }"); test("typeof x !== 'undefined'; { let x }", "typeof x < 'u'; { let x }"); test("typeof x !== 'undefined'; var x", "x !== undefined; var x");