Skip to content

Commit

Permalink
bump up coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
shazarre committed May 15, 2024
1 parent 7392a7a commit c9c3345
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { testWithGanache } from '@celo/dev-utils/lib/ganache-test'
import { newKitFromWeb3 } from '../kit'

testWithGanache('FeeCurrencyDirectory', (web3) => {
const kit = newKitFromWeb3(web3)

// Fails with "FeeCurrencyDirectory not (yet) registered"
it.failing('fetches fee currency information', async () => {
const wrapper = await kit.contracts.getFeeCurrencyDirectory()

expect(wrapper.getFeeCurrencyInformation()).toMatchInlineSnapshot()
})
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { testWithGanache } from '@celo/dev-utils/lib/ganache-test'
import { newKitFromWeb3 } from '../kit'

testWithGanache('FeeCurrencyWhitelist', (web3) => {
const kit = newKitFromWeb3(web3)

it('fetches fee currency information', async () => {
const wrapper = await kit.contracts.getFeeCurrencyWhitelist()

expect(await wrapper.getFeeCurrencyInformation()).toMatchInlineSnapshot(`
[
{
"adaptedToken": undefined,
"address": "0x5315e44798395d4a952530d131249fE00f554565",
"name": "Celo Dollar",
"symbol": "cUSD",
},
{
"adaptedToken": undefined,
"address": "0x965D352283a3C8A016b9BBbC9bf6306665d495E7",
"name": "Celo Brazilian Real",
"symbol": "cREAL",
},
{
"adaptedToken": undefined,
"address": "0xdD66C23e07b4D6925b6089b5Fe6fc9E62941aFE8",
"name": "Celo Euro",
"symbol": "cEUR",
},
]
`)
})
})

0 comments on commit c9c3345

Please sign in to comment.