diff --git a/packages/snjs/lib/Domain/UseCase/SignInWithRecoveryCodes/SignInWithRecoveryCodes.spec.ts b/packages/snjs/lib/Domain/UseCase/SignInWithRecoveryCodes/SignInWithRecoveryCodes.spec.ts index b989f0794..e3615ebeb 100644 --- a/packages/snjs/lib/Domain/UseCase/SignInWithRecoveryCodes/SignInWithRecoveryCodes.spec.ts +++ b/packages/snjs/lib/Domain/UseCase/SignInWithRecoveryCodes/SignInWithRecoveryCodes.spec.ts @@ -1,6 +1,7 @@ import { AuthClientInterface, EncryptionProviderInterface, + EXPIRED_PROTOCOL_VERSION, InternalEventBusInterface, KeyValueStoreInterface, SessionsClientInterface, @@ -160,9 +161,7 @@ describe('SignInWithRecoveryCodes', () => { }) expect(result.isFailed()).toBe(true) - expect(result.getError()).toEqual( - 'The protocol version associated with your account is outdated and no longer supported by this application. Please visit standardnotes.com/help/security for more information.', - ) + expect(result.getError()).toEqual(EXPIRED_PROTOCOL_VERSION) }) it('should fail if the sign in with recovery code fails', async () => {