mirror of
https://github.com/meteor/meteor.git
synced 2026-01-10 08:08:24 -05:00
chore: fix warning about calling Meteor.user() instead of Meteor.userAsync() on the server, when running the accounts-password 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