Skip to content

Commit

Permalink
fix(network): update test cases to reflect new network config structure
Browse files Browse the repository at this point in the history
  • Loading branch information
drichar committed Nov 24, 2024
1 parent b9f7209 commit b93c080
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
8 changes: 5 additions & 3 deletions packages/use-wallet/src/__tests__/manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,11 @@ describe('WalletManager', () => {
it('initializes with custom network configurations', () => {
const networks = new NetworkConfigBuilder()
.mainnet({
token: 'custom-token',
baseServer: 'https://custom-server.com',
headers: { 'X-API-Key': 'key' }
algod: {
token: 'custom-token',
baseServer: 'https://custom-server.com',
headers: { 'X-API-Key': 'key' }
}
})
.build()

Expand Down
13 changes: 9 additions & 4 deletions packages/use-wallet/src/__tests__/network.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ describe('Network Configuration', () => {
it('allows customizing default network algod config', () => {
const networks = new NetworkConfigBuilder()
.mainnet({
token: 'custom-token',
baseServer: 'custom-server',
headers: { 'X-API-Key': 'key' }
algod: {
token: 'custom-token',
baseServer: 'custom-server',
headers: { 'X-API-Key': 'key' }
}
})
.build()

Expand Down Expand Up @@ -85,7 +87,10 @@ describe('Network Configuration', () => {
it('maintains all default networks when customizing one', () => {
const networks = new NetworkConfigBuilder()
.mainnet({
token: 'custom-token'
algod: {
token: 'custom-token',
baseServer: 'custom-server'
}
})
.build()

Expand Down

0 comments on commit b93c080

Please sign in to comment.