summaryrefslogtreecommitdiff
path: root/js/blob_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/blob_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/blob_test.ts')
-rw-r--r--js/blob_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/blob_test.ts b/js/blob_test.ts
index 3c778a0e1..b11a22f3c 100644
--- a/js/blob_test.ts
+++ b/js/blob_test.ts
@@ -1,14 +1,14 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { test, assert, assertEquals } from "./test_util.ts";
-test(function blobString() {
+test(function blobString(): void {
const b1 = new Blob(["Hello World"]);
const str = "Test";
const b2 = new Blob([b1, str]);
assertEquals(b2.size, b1.size + str.length);
});
-test(function blobBuffer() {
+test(function blobBuffer(): void {
const buffer = new ArrayBuffer(12);
const u8 = new Uint8Array(buffer);
const f1 = new Float32Array(buffer);
@@ -18,7 +18,7 @@ test(function blobBuffer() {
assertEquals(b2.size, 3 * u8.length);
});
-test(function blobSlice() {
+test(function blobSlice(): void {
const blob = new Blob(["Deno", "Foo"]);
const b1 = blob.slice(0, 3, "Text/HTML");
assert(b1 instanceof Blob);
@@ -32,7 +32,7 @@ test(function blobSlice() {
assertEquals(b4.size, blob.size);
});
-test(function blobShouldNotThrowError() {
+test(function blobShouldNotThrowError(): void {
let hasThrown = false;
try {