Closed PezCoder closed 6 years ago
Not sure why the travis is breaking, My observations for the second test:
ctx._initAuthResolver()
will invoke auth.onAuthStateChanged
internally with a callback
to resolve the promise returned by _initAuthResolver
functionfakePromiseResolve
should now contain a function calling which should call the above callback
fakePromiseResolve
& Promise should be resolved & expect should be checked, done should let the jasmine know that the task is done.It's running fine locally but not on travis, maybe it's not resolving on travis. Am I missing something ? 🤔
The newly added tests are passing as expected now, after i added tick()
method at last. 😄
Buy how ? Also other tests that are not related to my pr are breaking.
Description
src/auth/FirebaseAuth.js
contains a function named_initAuthResolver
This pr adds unit test cases for_initAuthResolver
function. Reference: https://github.com/firebase/angularfire/issues/951