Skip to content

Commit

Permalink
fix: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
matstyler committed May 3, 2024
1 parent 566edc7 commit cf13a43
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { testWithEthereumWalletMock } from '../../../src'

const test = testWithEthereumWalletMock
import test from '../../synpress'

const { expect } = test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { testWithEthereumWalletMock } from '../../../src'

const test = testWithEthereumWalletMock
import test from '../../synpress'

const { expect } = test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { testWithEthereumWalletMock } from '../../../../src'
import synpress from '../../../synpress'

const test = testWithEthereumWalletMock
const test = synpress

const { expect } = test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { testWithEthereumWalletMock } from '../../../src'

const test = testWithEthereumWalletMock
import test from '../../synpress'

const { expect } = test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
import { testWithEthereumWalletMock } from '../../../src'

const test = testWithEthereumWalletMock
import test from '../../synpress'
import { ANVIL_CHAIN_ID, ANVIL_URL_URL } from '../../../src'

const { expect } = test

test('should switch network', async ({ createAnvilNetwork, walletMock, page }) => {
function createAnvilNetwork() {
return {
name: 'Anvil',
rpcUrl: ANVIL_URL_URL,
chainId: ANVIL_CHAIN_ID,
blockExplorerUrl: 'https://etherscan.io/',
nativeCurrency: {
decimals: 18,
name: 'Anvil',
symbol: 'ETH'
}
}
}

test('should switch network', async ({ walletMock, page }) => {
const network = createAnvilNetwork()

await walletMock.addNetwork(network)
Expand Down

0 comments on commit cf13a43

Please sign in to comment.