From d9f5e7fd52a3fd0f4ccf5c91b3201de0fd97f716 Mon Sep 17 00:00:00 2001 From: Boshen Date: Mon, 20 Jan 2025 16:39:39 +0800 Subject: [PATCH] test(minifier): enable passed esbuild tests --- crates/oxc_minifier/tests/ast_passes/esbuild.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/oxc_minifier/tests/ast_passes/esbuild.rs b/crates/oxc_minifier/tests/ast_passes/esbuild.rs index a97dea6bf5c65..930eba44c3131 100644 --- a/crates/oxc_minifier/tests/ast_passes/esbuild.rs +++ b/crates/oxc_minifier/tests/ast_passes/esbuild.rs @@ -27,7 +27,6 @@ use super::test; /// } /// ``` #[test] -#[ignore] fn js_parser_test() { test("x = {['_proto_']: x}", "x = { _proto_: x };"); test("x = {['__proto__']: x}", "x = { ['__proto__']: x };"); @@ -646,6 +645,11 @@ fn js_parser_test() { // ); test("if (a) return c; if (b) return d;", "if (a) return c;if (b) return d;"); // test("if (a) return c; if (b) return c;", "if (a || b) return c;"); +} + +#[test] +#[ignore] +fn test_ignored() { test("if (a) return c; if (b) return;", "if (a) return c;if (b) return;"); test("if (a) return; if (b) return c;", "if (a) return;if (b) return c;"); test("if (a) return; if (b) return;", "if (a || b) return;");