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/prettier/main_test.ts | |
parent | 7d2d442a77343a3c4ab6c638bd817e51c6cadd2e (diff) |
feat(flags): script arguments come after '--' (#3621)
Diffstat (limited to 'std/prettier/main_test.ts')
-rw-r--r-- | std/prettier/main_test.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/std/prettier/main_test.ts b/std/prettier/main_test.ts index 5e9c0ad57..0a7a05a46 100644 --- a/std/prettier/main_test.ts +++ b/std/prettier/main_test.ts @@ -25,7 +25,8 @@ const cmd = [ "--allow-run", "--allow-write", "--allow-read", - "./prettier/main.ts" + "./prettier/main.ts", + "--" ]; const testdata = join("prettier", "testdata"); @@ -402,6 +403,7 @@ test(async function testPrettierWithAutoConfig(): Promise<void> { "--allow-read", "--allow-env", prettierFile, + "--", "../5.ts", "--config", "auto" @@ -468,6 +470,7 @@ test(async function testPrettierWithSpecifiedConfig(): Promise<void> { "--allow-read", "--allow-env", prettierFile, + "--", "../5.ts", "--config", config.name @@ -503,6 +506,7 @@ test(async function testPrettierWithAutoIgnore(): Promise<void> { "--allow-read", "--allow-env", prettierFile, + "--", "**/*", "--ignore-path", "auto" @@ -531,6 +535,7 @@ test(async function testPrettierWithSpecifiedIgnore(): Promise<void> { "--allow-read", "--allow-env", prettierFile, + "--", "**/*", "--ignore-path", "typescript.prettierignore" |