tests: Make the `helper.newPad()` callback optional
parent
27b35699ea
commit
ec76a6548f
|
@ -92,6 +92,7 @@ const helper = {};
|
|||
helper.newPad = (opts, padName) => {
|
||||
opts = Object.assign({
|
||||
_retry: 0,
|
||||
cb: (err) => { if (err != null) throw err; },
|
||||
clearCookies: true,
|
||||
}, typeof opts === 'function' ? {cb: opts} : opts);
|
||||
|
||||
|
|
Loading…
Reference in New Issue