mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge pull request #13443 from 9Morello/chore/fix-warnings-on-accounts-password-tests
chore: fix warnings about calling Meteor.user() instead of Meteor.userAsync on the server when running accounts-password's test suite
This commit is contained in:
@@ -1212,10 +1212,10 @@ if (Meteor.isServer) (() => {
|
||||
|
||||
// This test properly belongs in accounts-base/accounts_tests.js, but
|
||||
// this is where the tests that actually log in are.
|
||||
Tinytest.addAsync('accounts - user() out of context', async test => {
|
||||
Tinytest.addAsync('accounts - userAsync() out of context', async test => {
|
||||
await test.throwsAsync(
|
||||
async () =>
|
||||
await Meteor.user()
|
||||
await Meteor.userAsync()
|
||||
);
|
||||
await Meteor.users.removeAsync({});
|
||||
});
|
||||
|
||||
@@ -121,7 +121,7 @@ Accounts.config({
|
||||
Meteor.methods(
|
||||
{
|
||||
testMeteorUser:
|
||||
async () => await Meteor.user(),
|
||||
async () => await Meteor.userAsync(),
|
||||
|
||||
clearUsernameAndProfile:
|
||||
async function () {
|
||||
|
||||
Reference in New Issue
Block a user