The method only should have the same signature as the runner function
parent
45153fc6e7
commit
28a0dad16a
2
index.js
2
index.js
|
@ -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) }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue