mirror of
https://github.com/denoland/deno.git
synced 2025-08-19 10:10:25 +00:00
Fix eslint warnings (#2151)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
This commit is contained in:
parent
6cded14bdf
commit
9dfebbc949
75 changed files with 1110 additions and 931 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue