Skip to content

Commit

Permalink
fixes storage error on test
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwicopple authored Jan 16, 2025
1 parent ea2fd39 commit 73a52a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/GoTrueClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1082,11 +1082,15 @@ describe('GoTrueClient with storageisServer = true', () => {
})

describe('GoTrueClient with throwOnError option', () => {
const store = memoryLocalStorageAdapter()
const client = new GoTrueClient({
url: GOTRUE_URL_SIGNUP_ENABLED_AUTO_CONFIRM_ON,
storageKey: 'test-storage-key',
autoRefreshToken: false,
persistSession: true,
storage: new MemoryStorage(),
storage: {
...store
},
throwOnError: true,
})

Expand Down

0 comments on commit 73a52a1

Please sign in to comment.