From 28a0dad16abae50434ec2dec165c033ec792fff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Matte?= Date: Thu, 1 Dec 2022 00:34:42 -0500 Subject: [PATCH] The method only should have the same signature as the runner function --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 37cd892..61a8e83 100644 --- a/index.js +++ b/index.js @@ -27,7 +27,7 @@ const metaltest = (title) => { suite.push({ name, fn }) } - runner.only = (fn) => { only.push(fn) } + runner.only = (name, fn) => { only.push({ name, fn }) } runner.before = (fn) => { before.push(fn) } runner.after = (fn) => { after.push(fn) }