mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Don't let label be null
This commit is contained in:
@@ -208,11 +208,12 @@ addCustomMatchers = (spec) ->
|
||||
element.style.display in ['block', 'inline-block', 'static', 'fixed']
|
||||
|
||||
window.waitsForPromise = (args...) ->
|
||||
label = null
|
||||
if args.length > 1
|
||||
{shouldReject, timeout, label} = args[0]
|
||||
else
|
||||
label = 'promise to be resolved or rejected'
|
||||
shouldReject = false
|
||||
label ?= 'promise to be resolved or rejected'
|
||||
fn = _.last(args)
|
||||
|
||||
window.waitsFor label, timeout, (moveOn) ->
|
||||
|
||||
Reference in New Issue
Block a user