The method only should have the same signature as the runner function

master
Frédéric Matte 2022-12-01 00:34:42 -05:00
parent 45153fc6e7
commit 28a0dad16a
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ const metaltest = (title) => {
suite.push({ name, fn }) 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.before = (fn) => { before.push(fn) }
runner.after = (fn) => { after.push(fn) } runner.after = (fn) => { after.push(fn) }