summaryrefslogtreecommitdiff
path: root/std/fs/copy_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/fs/copy_test.ts')
-rw-r--r--std/fs/copy_test.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/std/fs/copy_test.ts b/std/fs/copy_test.ts
index 9ba5f2b21..0fbc90579 100644
--- a/std/fs/copy_test.ts
+++ b/std/fs/copy_test.ts
@@ -3,7 +3,7 @@ import {
assertEquals,
assertThrows,
assertThrowsAsync,
- assert
+ assert,
} from "../testing/asserts.ts";
import * as path from "../path/mod.ts";
import { copy, copySync } from "./copy.ts";
@@ -22,11 +22,11 @@ function testCopy(name: string, cb: (tempDir: string) => Promise<void>): void {
name,
async fn(): Promise<void> {
const tempDir = await Deno.makeTempDir({
- prefix: "deno_std_copy_async_test_"
+ prefix: "deno_std_copy_async_test_",
});
await cb(tempDir);
await Deno.remove(tempDir, { recursive: true });
- }
+ },
});
}
@@ -35,11 +35,11 @@ function testCopySync(name: string, cb: (tempDir: string) => void): void {
name,
fn: (): void => {
const tempDir = Deno.makeTempDirSync({
- prefix: "deno_std_copy_sync_test_"
+ prefix: "deno_std_copy_sync_test_",
});
cb(tempDir);
Deno.removeSync(tempDir, { recursive: true });
- }
+ },
});
}
@@ -149,7 +149,7 @@ testCopy(
// Copy with overwrite and preserve timestamps options.
await copy(srcFile, destFile, {
overwrite: true,
- preserveTimestamps: true
+ preserveTimestamps: true,
});
const destStatInfo = await Deno.stat(destFile);
@@ -333,7 +333,7 @@ testCopySync(
// Copy with overwrite and preserve timestamps options.
copySync(srcFile, destFile, {
overwrite: true,
- preserveTimestamps: true
+ preserveTimestamps: true,
});
const destStatInfo = Deno.statSync(destFile);