From ac7c0e515a0e6fe66cc9e8475358ce8c0f2ecebf Mon Sep 17 00:00:00 2001 From: yamiteru Date: Mon, 3 Apr 2023 12:06:11 +0200 Subject: [PATCH] Add await for useTerminal --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc59c9e..8b60d64 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ const testBenchmark = defaultSuite("Test", { (async () => { // collect data and print them into a terminal - useTerminal(); + await useTerminal(); // run all benchmarks and trigger lifecycle events await testBenchmark(); @@ -116,7 +116,7 @@ Listens to events and prints suite and benchmark results into a terminal. ```ts // subscribe to events -useTerminal(); +await useTerminal(); // run suite which publishes data to the events await runBenchmarks();