aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/regression/issue/03830.test.ts32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/regression/issue/03830.test.ts b/test/regression/issue/03830.test.ts
index e0689474c..9723c5900 100644
--- a/test/regression/issue/03830.test.ts
+++ b/test/regression/issue/03830.test.ts
@@ -7,24 +7,24 @@ import { tmpdir } from "os";
import { join } from "path";
it("macros should not lead to seg faults under any given input", async () => {
- // this test code follows the same structure as and
- // is based on the code for testing issue 4893
+ // this test code follows the same structure as and
+ // is based on the code for testing issue 4893
- const testDir = mkdtempSync(join(tmpdir(), "issue3830-"));
+ const testDir = mkdtempSync(join(tmpdir(), "issue3830-"));
- // Clean up from prior runs if necessary
- rmSync(testDir, { recursive: true, force: true });
+ // Clean up from prior runs if necessary
+ rmSync(testDir, { recursive: true, force: true });
- // Create a directory with our test file
- mkdirSync(testDir, { recursive: true });
- writeFileSync(join(testDir, "macro.ts"), 'export function fn(str) { return str; }');
- writeFileSync(join(testDir, "index.ts"), "import { fn } from './macro' assert { type: 'macro' };\nfn(`©${''}`);");
+ // Create a directory with our test file
+ mkdirSync(testDir, { recursive: true });
+ writeFileSync(join(testDir, "macro.ts"), "export function fn(str) { return str; }");
+ writeFileSync(join(testDir, "index.ts"), "import { fn } from './macro' assert { type: 'macro' };\nfn(`©${''}`);");
- const { stdout, exitCode } = Bun.spawnSync({
- cmd: [bunExe(), "build", join(testDir, "index.ts")],
- env: bunEnv,
- stderr: "inherit",
- });
+ const { stdout, exitCode } = Bun.spawnSync({
+ cmd: [bunExe(), "build", join(testDir, "index.ts")],
+ env: bunEnv,
+ stderr: "inherit",
+ });
- expect(exitCode).toBe(0);
-}); \ No newline at end of file
+ expect(exitCode).toBe(0);
+});