Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(faucet)!: set default tokens #369

Merged
merged 5 commits into from
Aug 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: bump test
  • Loading branch information
cgilbe27 committed Aug 15, 2024
commit bbe963c1a3952702b551088213cc3fd239d4d0b0
7 changes: 3 additions & 4 deletions src/sdk/utils/faucet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe("useFaucet", () => {
test("should request funds from faucet with default amounts", async () => {
await useFaucet({ address, chain, grecaptcha })

const expectedCoins = ["11000000unibi", "100000000unusd", "100000000uusdt"]
const expectedCoins = ["10000000unibi"]

expect(fetch).toHaveBeenCalledWith(expectedUrl, {
method: "POST",
Expand All @@ -91,10 +91,9 @@ describe("useFaucet", () => {
})

test("should request funds from faucet with custom amounts", async () => {
const amts = { nibi: 5, nusd: 50, usdt: 50 }
await useFaucet({ address, chain, amts, grecaptcha })
await useFaucet({ address, chain, grecaptcha })

const expectedCoins = ["5000000unibi", "50000000unusd", "50000000uusdt"]
const expectedCoins = ["10000000unibi"]

expect(fetch).toHaveBeenCalledWith(expectedUrl, {
method: "POST",
Expand Down
Loading