summaryrefslogtreecommitdiff
path: root/cli/tests/unit/performance_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/performance_test.ts
parent299c7cfe54cb184e0d0c18b00a154c953b433ebf (diff)
refactor(cli/tests): remove unnecessary void return types (#11577)
Diffstat (limited to 'cli/tests/unit/performance_test.ts')
-rw-r--r--cli/tests/unit/performance_test.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/cli/tests/unit/performance_test.ts b/cli/tests/unit/performance_test.ts
index 94af0731c..989d221d8 100644
--- a/cli/tests/unit/performance_test.ts
+++ b/cli/tests/unit/performance_test.ts
@@ -8,12 +8,10 @@ import {
unitTest,
} from "./test_util.ts";
-unitTest({ perms: { hrtime: false } }, async function performanceNow(): Promise<
- void
-> {
+unitTest({ perms: { hrtime: false } }, async function performanceNow() {
const resolvable = deferred();
const start = performance.now();
- setTimeout((): void => {
+ setTimeout(() => {
const end = performance.now();
assert(end - start >= 10);
resolvable.resolve();
@@ -82,7 +80,7 @@ unitTest(function performanceMeasure() {
});
});
-unitTest(function performanceCustomInspectFunction(): void {
+unitTest(function performanceCustomInspectFunction() {
assertStringIncludes(Deno.inspect(performance), "Performance");
assertStringIncludes(
Deno.inspect(Performance.prototype),
@@ -90,7 +88,7 @@ unitTest(function performanceCustomInspectFunction(): void {
);
});
-unitTest(function performanceMarkCustomInspectFunction(): void {
+unitTest(function performanceMarkCustomInspectFunction() {
const mark1 = performance.mark("mark1");
assertStringIncludes(Deno.inspect(mark1), "PerformanceMark");
assertStringIncludes(
@@ -99,7 +97,7 @@ unitTest(function performanceMarkCustomInspectFunction(): void {
);
});
-unitTest(function performanceMeasureCustomInspectFunction(): void {
+unitTest(function performanceMeasureCustomInspectFunction() {
const measure1 = performance.measure("measure1");
assertStringIncludes(Deno.inspect(measure1), "PerformanceMeasure");
assertStringIncludes(