aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-10-30 16:09:34 -0700
committerGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-10-30 16:09:34 -0700
commit7e09c7ca1e5da3f2f09f4145a33e331f87733acf (patch)
tree14d94a1999cda3d6968b1058a184783cff9479b3
parent4d780837ac241ed595287a19f2d5b403680eab0b (diff)
downloadbun-7e09c7ca1e5da3f2f09f4145a33e331f87733acf.tar.gz
bun-7e09c7ca1e5da3f2f09f4145a33e331f87733acf.tar.zst
bun-7e09c7ca1e5da3f2f09f4145a33e331f87733acf.zip
format
-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);
+});