Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
magiziz committed Jan 22, 2025
1 parent 3806450 commit cf0bcbc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/adapters/solana/src/tests/AuthProvider.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { beforeEach, describe, expect, it, vi } from 'vitest'

import { ConstantsUtil } from '@reown/appkit-common'

import { AuthProvider } from '../providers/AuthProvider'
import { mockLegacyTransaction, mockVersionedTransaction } from './mocks/Transaction'
import { mockW3mFrameProvider } from './mocks/W3mFrameProvider'
Expand All @@ -24,6 +26,18 @@ describe('AuthProvider specific tests', () => {
})
})

it('should have correct metadata', () => {
expect(authProvider).toEqual(
expect.objectContaining({
id: ConstantsUtil.CONNECTOR_ID.AUTH,
name: ConstantsUtil.CONNECTOR_NAMES.AUTH,
type: 'AUTH',
chain: ConstantsUtil.CHAIN.SOLANA,
provider
})
)
})

it('should call connect', async () => {
await authProvider.connect()

Expand Down

0 comments on commit cf0bcbc

Please sign in to comment.