Skip to content

Commit

Permalink
remote test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vpomerleau committed Nov 26, 2024
1 parent b417cc1 commit f323776
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/fxa-auth-server/test/remote/recovery_code_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,13 @@ describe(`#integration${testOptions.version} - remote backup authentication code
});

it('can retrieve a count of backup authentication codes', () => {
return client.getRecoveryCodesExist().then((result) => {
assert.equal(result.hasBackupCodes, true, 'recovery codes exist');
assert.equal(
result.count,
recoveryCodeCount,
'correct remaining codes'
);
});
const result = client.getRecoveryCodesExist(client.sessionToken);
assert.equal(result.hasBackupCodes, true, 'recovery codes exist');
assert.equal(
result.count,
recoveryCodeCount,
'correct remaining codes'
);
});

it('should replace backup authentication codes', () => {
Expand Down

0 comments on commit f323776

Please sign in to comment.