summaryrefslogtreecommitdiff
path: root/js/truncate_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-04-21 16:40:10 -0400
committerGitHub <noreply@github.com>2019-04-21 16:40:10 -0400
commit9dfebbc9496138efbeedc431068f41662c780f3e (patch)
treec3718c3dc132d11c08c8fc18933daebf886bf787 /js/truncate_test.ts
parent6cded14bdf313762956d4d5361cfe8115628b535 (diff)
Fix eslint warnings (#2151)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com> Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
Diffstat (limited to 'js/truncate_test.ts')
-rw-r--r--js/truncate_test.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/js/truncate_test.ts b/js/truncate_test.ts
index 09830c073..055db8652 100644
--- a/js/truncate_test.ts
+++ b/js/truncate_test.ts
@@ -15,7 +15,7 @@ async function readData(name: string): Promise<string> {
return text;
}
-testPerm({ read: true, write: true }, function truncateSyncSuccess() {
+testPerm({ read: true, write: true }, function truncateSyncSuccess(): void {
const enc = new TextEncoder();
const d = enc.encode("Hello");
const filename = Deno.makeTempDirSync() + "/test_truncateSync.txt";
@@ -32,7 +32,9 @@ testPerm({ read: true, write: true }, function truncateSyncSuccess() {
Deno.removeSync(filename);
});
-testPerm({ read: true, write: true }, async function truncateSuccess() {
+testPerm({ read: true, write: true }, async function truncateSuccess(): Promise<
+ void
+> {
const enc = new TextEncoder();
const d = enc.encode("Hello");
const filename = Deno.makeTempDirSync() + "/test_truncate.txt";
@@ -49,7 +51,7 @@ testPerm({ read: true, write: true }, async function truncateSuccess() {
await Deno.remove(filename);
});
-testPerm({ write: false }, function truncateSyncPerm() {
+testPerm({ write: false }, function truncateSyncPerm(): void {
let err;
try {
Deno.mkdirSync("/test_truncateSyncPermission.txt");
@@ -60,7 +62,7 @@ testPerm({ write: false }, function truncateSyncPerm() {
assertEquals(err.name, "PermissionDenied");
});
-testPerm({ write: false }, async function truncatePerm() {
+testPerm({ write: false }, async function truncatePerm(): Promise<void> {
let err;
try {
await Deno.mkdir("/test_truncatePermission.txt");