From 3500789504c8818b5308b16575611cafdf075613 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:11:02 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- napi/transform/test.mjs | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/napi/transform/test.mjs b/napi/transform/test.mjs index 50e91b7357cd77..072141182ac22b 100644 --- a/napi/transform/test.mjs +++ b/napi/transform/test.mjs @@ -85,21 +85,27 @@ test( // Test define plugin // TODO: should be constant folded -test(oxc.transform('test.ts', 'if (process.env.NODE_ENV === "production") { foo; }', { - define: { - 'process.env.NODE_ENV': 'false' - } -}), { - code: 'if (false === "production") {\n\tfoo;\n}\n', -}); +test( + oxc.transform('test.ts', 'if (process.env.NODE_ENV === "production") { foo; }', { + define: { + 'process.env.NODE_ENV': 'false', + }, + }), + { + code: 'if (false === "production") {\n\tfoo;\n}\n', + }, +); // Test inject plugin -test(oxc.transform('test.ts', 'let _ = Object.assign', { - inject: { - 'Object.assign': 'foo' - } -}), { - code: 'import $inject_Object_assign from "foo";\nlet _ = $inject_Object_assign;\n', -}); +test( + oxc.transform('test.ts', 'let _ = Object.assign', { + inject: { + 'Object.assign': 'foo', + }, + }), + { + code: 'import $inject_Object_assign from "foo";\nlet _ = $inject_Object_assign;\n', + }, +); console.log('Success.');