Skip to content

Commit

Permalink
test(minifier): enable passed esbuild tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jan 20, 2025
1 parent 712cae0 commit d9f5e7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/oxc_minifier/tests/ast_passes/esbuild.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 };");
Expand Down Expand Up @@ -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;");
Expand Down

0 comments on commit d9f5e7f

Please sign in to comment.