diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-25 00:09:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-25 00:09:14 +0200 |
| commit | 0cb1bb98cc2de8dfe51b7adbe992666936146c90 (patch) | |
| tree | a50b84ff268732e9db15895b443638ac86657007 /cli/js/tests | |
| parent | 833539fcafa77f341b74498b37372a61c5f10418 (diff) | |
BREAKING CHANGE: change order of args in Deno.copy() (#4885)
Diffstat (limited to 'cli/js/tests')
| -rw-r--r-- | cli/js/tests/files_test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/tests/files_test.ts b/cli/js/tests/files_test.ts index 1e2c06082..11a2e08ae 100644 --- a/cli/js/tests/files_test.ts +++ b/cli/js/tests/files_test.ts @@ -18,7 +18,7 @@ unitTest({ perms: { read: true } }, async function filesCopyToStdout(): Promise< const filename = "cli/tests/fixture.json"; const file = await Deno.open(filename); assert(file.rid > 2); - const bytesWritten = await Deno.copy(Deno.stdout, file); + const bytesWritten = await Deno.copy(file, Deno.stdout); const fileSize = Deno.statSync(filename).size; assertEquals(bytesWritten, fileSize); console.log("bytes written", bytesWritten); |
