diff --git a/packages/accounts-password/password_tests.js b/packages/accounts-password/password_tests.js index b21b4e6d3d..63af757d2c 100644 --- a/packages/accounts-password/password_tests.js +++ b/packages/accounts-password/password_tests.js @@ -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({}); }); diff --git a/packages/accounts-password/password_tests_setup.js b/packages/accounts-password/password_tests_setup.js index 48a34c8766..50a1e95862 100644 --- a/packages/accounts-password/password_tests_setup.js +++ b/packages/accounts-password/password_tests_setup.js @@ -121,7 +121,7 @@ Accounts.config({ Meteor.methods( { testMeteorUser: - async () => await Meteor.user(), + async () => await Meteor.userAsync(), clearUsernameAndProfile: async function () {