From 7c51b2fd9d9f5d6dfcd93021a4e9b3591bb51507 Mon Sep 17 00:00:00 2001 From: camc314 <18101008+camc314@users.noreply.github.com> Date: Wed, 23 Oct 2024 04:07:50 +0000 Subject: [PATCH] chore(minifier): remove duplicate minifier test (#6792) these tests already exist below (and have been enabled) https://github.com/oxc-project/oxc/blob/34fe7c00a393471309d336fcdcfef86402a9c8dc/crates/oxc_minifier/src/ast_passes/peephole_remove_dead_code.rs#L576-L597 i suspect this was left in as a copy/pasta error --- .../ast_passes/peephole_minimize_conditions.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/crates/oxc_minifier/src/ast_passes/peephole_minimize_conditions.rs b/crates/oxc_minifier/src/ast_passes/peephole_minimize_conditions.rs index 3595ae1a5..5fd2e468f 100644 --- a/crates/oxc_minifier/src/ast_passes/peephole_minimize_conditions.rs +++ b/crates/oxc_minifier/src/ast_passes/peephole_minimize_conditions.rs @@ -869,24 +869,6 @@ mod test { fold_same("if (f) { f?.['x'](); }"); } - #[test] - #[ignore] - fn test_object_literal() { - test("({})", "1"); - test("({a:1})", "1"); - test_same("({a:foo()})"); - test_same("({'a':foo()})"); - } - - #[test] - #[ignore] - fn test_array_literal() { - test("([])", "1"); - test("([1])", "1"); - test("([a])", "1"); - test_same("([foo()])"); - } - #[test] #[ignore] fn test_remove_else_cause() {