Skip to content

Commit 69eb1a4

Browse files
committed
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.
1 parent 1d2d086 commit 69eb1a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/app-tests/loading.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ describe('loading:', function () {
139139
realQueryParams={params}
140140
startingFragmentQueryParams={fragParts.params}
141141
enableGuest={true}
142-
onTokenLoginCompleted={tokenLoginCompleteDefer.resolve}
142+
onTokenLoginCompleted={() => tokenLoginCompleteDefer.resolve()}
143143
initialScreenAfterLogin={getScreenFromLocation(windowLocation)}
144144
makeRegistrationUrl={() => {throw new Error('Not implemented');}}
145145
/>, parentDiv

0 commit comments

Comments
 (0)