Fix a broken test

turns out that you could call defer.resolve on q defers as an unbound function,
whereas that doesn't work with bluebird promises.
pull/4565/head
Richard van der Hoff 2017-07-13 00:56:13 +01:00
parent 1d2d086a58
commit 69eb1a49d4
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ describe('loading:', function () {
realQueryParams={params} realQueryParams={params}
startingFragmentQueryParams={fragParts.params} startingFragmentQueryParams={fragParts.params}
enableGuest={true} enableGuest={true}
onTokenLoginCompleted={tokenLoginCompleteDefer.resolve} onTokenLoginCompleted={() => tokenLoginCompleteDefer.resolve()}
initialScreenAfterLogin={getScreenFromLocation(windowLocation)} initialScreenAfterLogin={getScreenFromLocation(windowLocation)}
makeRegistrationUrl={() => {throw new Error('Not implemented');}} makeRegistrationUrl={() => {throw new Error('Not implemented');}}
/>, parentDiv />, parentDiv