Skip to content

Commit 195288e

Browse files
committed
fix: test
1 parent 3ee22a8 commit 195288e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/password-policy.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { randomUUID } from 'node:crypto'
33
import { afterAll, beforeAll, describe, expect, it } from 'vitest'
44

55
import { checkOrgReadAccess } from '../supabase/functions/_backend/private/validate_password_compliance.ts'
6-
import { BASE_URL, getSupabaseClient, headers, TEST_EMAIL, USER_EMAIL_NONMEMBER, USER_ID, USER_ID_2, USER_PASSWORD_NONMEMBER } from './test-utils.ts'
6+
import { BASE_URL, getSupabaseClient, headers, TEST_EMAIL, USER_EMAIL, USER_ID, USER_ID_2, USER_PASSWORD } from './test-utils.ts'
77

88
const ORG_ID = randomUUID()
99
const globalId = randomUUID()
@@ -306,8 +306,8 @@ describe('[POST] /private/validate_password_compliance', () => {
306306
it('reject request when user is not a member of the org', async () => {
307307
const nonMemberOrgId = randomUUID()
308308
const nonMemberCustomerId = `cus_pwd_nomember_${nonMemberOrgId}`
309-
const nonMemberEmail = USER_EMAIL_NONMEMBER
310-
const nonMemberPassword = USER_PASSWORD_NONMEMBER
309+
const nonMemberEmail = USER_EMAIL
310+
const nonMemberPassword = USER_PASSWORD
311311
const supabase = getSupabaseClient()
312312

313313
await supabase.from('stripe_info').insert({

tests/test-utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export const APIKEY_ENCRYPTED = 'b8c9d0e1-f2a3-4b4c-9d5e-6f7a8b9c0d14'
102102
export const APP_NAME_ENCRYPTED = 'com.encrypted.app'
103103
export const STRIPE_CUSTOMER_ID_ENCRYPTED = 'cus_encrypted_test_123'
104104
export const USER_EMAIL = 'test@capgo.app'
105+
export const USER_PASSWORD = 'testtest'
105106
export const TEST_EMAIL = 'test@test.com'
106107
export const USER_ID_NONMEMBER = '11111111-1111-4111-8111-111111111110'
107108
export const USER_EMAIL_NONMEMBER = 'nonmember@capgo.app'

0 commit comments

Comments
 (0)