summaryrefslogtreecommitdiff
path: root/cli/tests/unit/get_random_values_test.ts
diff options
context:
space:
mode:
authorLeo K <crowlkats@toaxl.com>2021-08-05 13:08:58 +0200
committerGitHub <noreply@github.com>2021-08-05 13:08:58 +0200
commit3f0cf9619fce71a8898c495501df4bdb0e07e735 (patch)
tree1b8af2c832f8344f9a39f55326d576eab63f447f /cli/tests/unit/get_random_values_test.ts
parent299c7cfe54cb184e0d0c18b00a154c953b433ebf (diff)
refactor(cli/tests): remove unnecessary void return types (#11577)
Diffstat (limited to 'cli/tests/unit/get_random_values_test.ts')
-rw-r--r--cli/tests/unit/get_random_values_test.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/cli/tests/unit/get_random_values_test.ts b/cli/tests/unit/get_random_values_test.ts
index 3f9f311f6..a9b493104 100644
--- a/cli/tests/unit/get_random_values_test.ts
+++ b/cli/tests/unit/get_random_values_test.ts
@@ -1,49 +1,49 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
import { assertNotEquals, assertStrictEquals, unitTest } from "./test_util.ts";
-unitTest(function getRandomValuesInt8Array(): void {
+unitTest(function getRandomValuesInt8Array() {
const arr = new Int8Array(32);
crypto.getRandomValues(arr);
assertNotEquals(arr, new Int8Array(32));
});
-unitTest(function getRandomValuesUint8Array(): void {
+unitTest(function getRandomValuesUint8Array() {
const arr = new Uint8Array(32);
crypto.getRandomValues(arr);
assertNotEquals(arr, new Uint8Array(32));
});
-unitTest(function getRandomValuesUint8ClampedArray(): void {
+unitTest(function getRandomValuesUint8ClampedArray() {
const arr = new Uint8ClampedArray(32);
crypto.getRandomValues(arr);
assertNotEquals(arr, new Uint8ClampedArray(32));
});
-unitTest(function getRandomValuesInt16Array(): void {
+unitTest(function getRandomValuesInt16Array() {
const arr = new Int16Array(4);
crypto.getRandomValues(arr);
assertNotEquals(arr, new Int16Array(4));
});
-unitTest(function getRandomValuesUint16Array(): void {
+unitTest(function getRandomValuesUint16Array() {
const arr = new Uint16Array(4);
crypto.getRandomValues(arr);
assertNotEquals(arr, new Uint16Array(4));
});
-unitTest(function getRandomValuesInt32Array(): void {
+unitTest(function getRandomValuesInt32Array() {
const arr = new Int32Array(8);
crypto.getRandomValues(arr);
assertNotEquals(arr, new Int32Array(8));
});
-unitTest(function getRandomValuesUint32Array(): void {
+unitTest(function getRandomValuesUint32Array() {
const arr = new Uint32Array(8);
crypto.getRandomValues(arr);
assertNotEquals(arr, new Uint32Array(8));
});
-unitTest(function getRandomValuesReturnValue(): void {
+unitTest(function getRandomValuesReturnValue() {
const arr = new Uint32Array(8);
const rtn = crypto.getRandomValues(arr);
assertNotEquals(arr, new Uint32Array(8));