mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fixing tests
This commit is contained in:
@@ -200,13 +200,13 @@ Tinytest.addAsync(
|
||||
|
||||
|
||||
Tinytest.addAsync(
|
||||
'accounts-2fa - Meteor.loginWithPasswordAnd2faCode() fails with invalid token',
|
||||
'accounts-2fa - Meteor.loginWithPasswordAnd2faCode() fails with invalid code',
|
||||
(test, done) => {
|
||||
createUserAndLogout(test, done, () => {
|
||||
forceEnableUser2fa(() => {
|
||||
Meteor.loginWithPasswordAnd2faCode(username, password, 'ABC', e => {
|
||||
test.isFalse(Meteor.user());
|
||||
test.equal(e.reason, 'Invalid token.');
|
||||
test.equal(e.reason, 'Invalid 2FA code.');
|
||||
removeTestUser(done);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user