mirror of
https://github.com/denoland/deno.git
synced 2025-07-29 16:13:54 +00:00
Remove unnecessary async keyword in test file (#1507)
This commit is contained in:
parent
37e3db00a2
commit
02792d58d4
3 changed files with 7 additions and 7 deletions
|
@ -1,14 +1,14 @@
|
|||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||
import { test, assert, assertEqual } from "./test_util.ts";
|
||||
|
||||
test(async function blobString() {
|
||||
test(function blobString() {
|
||||
const b1 = new Blob(["Hello World"]);
|
||||
const str = "Test";
|
||||
const b2 = new Blob([b1, str]);
|
||||
assertEqual(b2.size, b1.size + str.length);
|
||||
});
|
||||
|
||||
test(async function blobBuffer() {
|
||||
test(function blobBuffer() {
|
||||
const buffer = new ArrayBuffer(12);
|
||||
const u8 = new Uint8Array(buffer);
|
||||
const f1 = new Float32Array(buffer);
|
||||
|
@ -18,7 +18,7 @@ test(async function blobBuffer() {
|
|||
assertEqual(b2.size, 3 * u8.length);
|
||||
});
|
||||
|
||||
test(async function blobSlice() {
|
||||
test(function blobSlice() {
|
||||
const blob = new Blob(["Deno", "Foo"]);
|
||||
const b1 = blob.slice(0, 3, "Text/HTML");
|
||||
assert(b1 instanceof Blob);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue