-
Notifications
You must be signed in to change notification settings - Fork 927
Add auth listener implementation, add user.reload() #2961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
auth.currentUser = user; | ||
auth._isInitialized = true; | ||
auth.onAuthStateChanged(user => { | ||
expect(user).to.eq(user); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use expect(callback).to.have.been.calledWith() instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, maybe I misunderstood, it looks like you used calledWith() down below, but not in these test cases
14488c0
to
c263a72
Compare
7f4ca92
to
977fd2b
Compare
977fd2b
to
83f05ba
Compare
83f05ba
to
f12ebec
Compare
No description provided.