Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Jun 8, 2024
1 parent 7b76a87 commit c54426f
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions src/op-stack/actions/getPortalVersion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,19 @@ test('default', async () => {
const version = await getPortalVersion(mainnetClient, {
targetChain: base,
})
expect(version).toMatchInlineSnapshot(`
{
"major": 1,
"minor": 7,
"patch": 0,
}
`)
expect(version).toBeDefined()
})

test('sepolia', async () => {
const version = await getPortalVersion(sepoliaClient, {
targetChain: optimismSepolia,
})
expect(version).toMatchInlineSnapshot(`
{
"major": 3,
"minor": 8,
"patch": 0,
}
`)
expect(version).toBeDefined()
})

test('args: portalAddress', async () => {
const version = await getPortalVersion(sepoliaClient, {
portalAddress: '0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f',
})
expect(version).toMatchInlineSnapshot(`
{
"major": 2,
"minor": 5,
"patch": 0,
}
`)
expect(version).toBeDefined()
})

0 comments on commit c54426f

Please sign in to comment.