mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
chore: move test files to testdata directory (#11601)
This commit is contained in:
parent
a0285e2eb8
commit
15a763152f
1089 changed files with 1150 additions and 1160 deletions
10
cli/tests/testdata/cat.ts
vendored
Normal file
10
cli/tests/testdata/cat.ts
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { copy } from "../../../test_util/std/io/util.ts";
|
||||
async function main() {
|
||||
for (let i = 1; i < Deno.args.length; i++) {
|
||||
const filename = Deno.args[i];
|
||||
const file = await Deno.open(filename);
|
||||
await copy(file, Deno.stdout);
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
Loading…
Add table
Add a link
Reference in a new issue