mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
tests: Make the helper.newPad()
callback optional
This commit is contained in:
parent
27b35699ea
commit
ec76a6548f
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue