Skip to content

Commit

Permalink
style: getBalance
Browse files Browse the repository at this point in the history
format and typos
  • Loading branch information
lucasportella committed Mar 1, 2024
1 parent b0886a3 commit de567ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/cardano/get-balance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('Get balance use case', () => {
await expect(getBalance(cardanoMockedInvalidAPI)).rejects.toThrow(BalanceFetchError)
})

it('shoud be able to return mocked free balance', async () => {
it('should be able to return mocked free balance', async () => {
const balance = await getBalance(cardanoMockedAPI)
expect(balance.free).toEqual('00')
})
Expand Down
1 change: 0 additions & 1 deletion src/cardano/getBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { ApiPromise } from './types';
import type { Balance } from '@/types';

export async function getBalance(api: ApiPromise): Promise<Balance> {

try {
const accountBalance = await api.getBalance()
return {
Expand Down

0 comments on commit de567ab

Please sign in to comment.