test(minifier): enable passed esbuild tests

This commit is contained in:
Boshen 2025-01-20 16:39:39 +08:00
parent 712cae034c
commit d9f5e7fd52
No known key found for this signature in database
GPG key ID: 67715A371E534061

View file

@ -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;");