We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
await
I found some weird issue with auth() mock object. Here is my code:
auth()
const mocksdk = firebasemock.MockFirebaseSdk(null, function () { return mockauth; }, function () { return mockfirestore; }); const seedTestData = proxyquire('../seedData', { 'firebase-admin': mocksdk });
const userDoc = await admin.auth().createUser({ uid: `user_${i}`, email: emailAddress, emailVerified: true, password: 'password', displayName: `${firstName} ${lastName}`, disabled: false });
The admin.auth().createUser fails without any error. but If I update the code with this, It works.
admin.auth().createUser
admin.auth().createUser({ uid: `user_${i}`, email: emailAddress, emailVerified: true, password: 'password', displayName: `${firstName} ${lastName}`, disabled: false }).then((user) => { console.log("created user: ", user); });
I wonder If firebase-mock support async/await?! I am using mocha to test.
firebase-mock
async/await
mocha
The text was updated successfully, but these errors were encountered:
I have the same issue D:
Sorry, something went wrong.
mockauth.autoFlush(1); should do the trick.
mockauth.autoFlush(1);
No branches or pull requests
I found some weird issue with
auth()
mock object. Here is my code:The
admin.auth().createUser
fails without any error. but If I update the code with this, It works.I wonder If
firebase-mock
supportasync/await
?! I am usingmocha
to test.The text was updated successfully, but these errors were encountered: