diff options
Diffstat (limited to 'cli/tests/cat.ts')
-rw-r--r-- | cli/tests/cat.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cli/tests/cat.ts b/cli/tests/cat.ts index bd6b5af06..a5b38fccd 100644 --- a/cli/tests/cat.ts +++ b/cli/tests/cat.ts @@ -1,10 +1,8 @@ -const { stdout, open, copy, args } = Deno; - async function main(): Promise<void> { - for (let i = 1; i < args.length; i++) { - const filename = args[i]; - const file = await open(filename); - await copy(file, stdout); + for (let i = 1; i < Deno.args.length; i++) { + const filename = Deno.args[i]; + const file = await Deno.open(filename); + await Deno.copy(file, Deno.stdout); } } |