Skip to content

Commit

Permalink
fix(tests): fixing address to be undefined and not null (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother authored Mar 21, 2024
1 parent 90acbdb commit b484258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/balance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ describe('Account balance', () => {
expect(typeof item.name).toBe('string')
expect(typeof item.symbol).toBe('string')
expect(item.chainId).toEqual(expect.stringMatching(/^(eip155:)?\d+$/))
if (item.address !== null) {
if (item.address !== undefined) {
expect(item.address).toEqual(expect.stringMatching(/^(eip155:\d+:0x[0-9a-fA-F]{40})$/))
} else {
expect(item.address).toBeNull()
expect(item.address).toBeUndefined()
}
expect(typeof item.price).toBe('number')
expect(typeof item.quantity).toBe('object')
Expand Down

0 comments on commit b484258

Please sign in to comment.