diff options
| author | Ry Dahl <ry@tinyclouds.org> | 2020-01-08 14:59:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-08 14:59:53 -0500 |
| commit | 2d5457df15d8c4a81362bb2d185b5c6013faa1d8 (patch) | |
| tree | ec851e15cb57c494f839de28abdb5a787487f8a5 /std/fs | |
| parent | 7d2d442a77343a3c4ab6c638bd817e51c6cadd2e (diff) | |
feat(flags): script arguments come after '--' (#3621)
Diffstat (limited to 'std/fs')
| -rw-r--r-- | std/fs/empty_dir_test.ts | 3 | ||||
| -rw-r--r-- | std/fs/exists_test.ts | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/std/fs/empty_dir_test.ts b/std/fs/empty_dir_test.ts index 55fdb52dc..1c1e6f34d 100644 --- a/std/fs/empty_dir_test.ts +++ b/std/fs/empty_dir_test.ts @@ -217,12 +217,13 @@ test(async function emptyDirPermission(): Promise<void> { args.push( path.join(testdataDir, s.async ? "empty_dir.ts" : "empty_dir_sync.ts") ); + args.push("--"); args.push("testfolder"); const { stdout } = Deno.run({ stdout: "piped", cwd: testdataDir, - args: args + args }); const output = await Deno.readAll(stdout); diff --git a/std/fs/exists_test.ts b/std/fs/exists_test.ts index b8c968a02..8e9381ed2 100644 --- a/std/fs/exists_test.ts +++ b/std/fs/exists_test.ts @@ -124,6 +124,7 @@ test(async function existsPermission(): Promise<void> { } args.push(path.join(testdataDir, s.async ? "exists.ts" : "exists_sync.ts")); + args.push("--"); args.push(s.file); const { stdout } = Deno.run({ |
