Skip to content

Commit 7c13752

Browse files
committed
Add schema version magic constant
1 parent 8fd5e91 commit 7c13752

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/auth/src/core/strategies/email_and_password.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,23 +747,24 @@ describe('core/strategies/email_and_password/createUserWithEmailAndPassword', ()
747747
});
748748

749749
context('#passwordPolicy', () => {
750-
const TEST_ALLOWED_NON_ALPHANUMERIC_CHARS = ['!', '(', ')'];
751750
const TEST_MIN_PASSWORD_LENGTH = 6;
751+
const TEST_ALLOWED_NON_ALPHANUMERIC_CHARS = ['!', '(', ')'];
752+
const TEST_SCHEMA_VERSION = 1;
752753

753754
const passwordPolicyResponse = {
754755
customStrengthOptions: {
755756
minPasswordLength: TEST_MIN_PASSWORD_LENGTH
756757
},
757758
allowedNonAlphanumericCharacters: TEST_ALLOWED_NON_ALPHANUMERIC_CHARS,
758-
schemaVersion: 1
759+
schemaVersion: TEST_SCHEMA_VERSION
759760
};
760761
const passwordPolicyResponseRequireNumeric = {
761762
customStrengthOptions: {
762763
minPasswordLength: TEST_MIN_PASSWORD_LENGTH,
763764
containsNumericCharacter: true
764765
},
765766
allowedNonAlphanumericCharacters: TEST_ALLOWED_NON_ALPHANUMERIC_CHARS,
766-
schemaVersion: 1
767+
schemaVersion: TEST_SCHEMA_VERSION
767768
};
768769
const cachedPasswordPolicy = {
769770
customStrengthOptions: {

0 commit comments

Comments
 (0)