mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
13 lines
383 B
TypeScript
13 lines
383 B
TypeScript
import { $ } from "bun";
|
|
import { expect, test } from "bun:test";
|
|
|
|
test("which rlly long", async () => {
|
|
const longstr = "a".repeat(100000);
|
|
expect(async () => await $`${longstr}`.throws(true)).toThrow();
|
|
});
|
|
|
|
test("which PATH rlly long", async () => {
|
|
const longstr = "a".repeat(100000);
|
|
expect(async () => await $`PATH=${longstr} slkdfjlsdkfj`.throws(true)).toThrow();
|
|
});
|