Skip to content

Commit fdb9cbf

Browse files
committed
fix test
1 parent 24943a4 commit fdb9cbf

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/devtools-move/jest/basexToBytes32.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ describe('basexToBytes32 - Address Format Detection and Conversion', () => {
4444
expect(() => basexToBytes32(address)).to.throw(`Unsupported address format: ${address}`)
4545
})
4646

47-
it('should handle empty string', () => {
47+
it('should map empty string to zero bytes32', () => {
4848
const address = ''
49-
expect(() => basexToBytes32(address)).to.throw('Empty address provided')
49+
expect(basexToBytes32(address)).to.equal(
50+
'0x0000000000000000000000000000000000000000000000000000000000000000'
51+
)
5052
})
5153
})
5254
})

0 commit comments

Comments
 (0)