Skip to content

Commit e5e6b44

Browse files
committed
make sure options are always defined
1 parent 59a5c2a commit e5e6b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/selianize/src/testcase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function emit(test, options = config, snapshot) {
7070
.concat(snapshot ? snapshot.teardownHooks.join('') : '')
7171
emittedTest += '});'
7272

73-
let func = `tests["${test.name}"] = async (driver, vars, opts) => {`
73+
let func = `tests["${test.name}"] = async (driver, vars, opts = {}) => {`
7474
func += commands.join('')
7575
func += '}'
7676

0 commit comments

Comments
 (0)