diff --git a/web3.js/test/connection.test.js b/web3.js/test/connection.test.js index 42c4295fd6..8389159e81 100644 --- a/web3.js/test/connection.test.js +++ b/web3.js/test/connection.test.js @@ -232,7 +232,7 @@ test('request airdrop', async () => { const accountInfo = await connection.getAccountInfo(account.publicKey); expect(accountInfo.tokens).toBe(42); - expect(accountInfo.userdata).toBe(null); + expect(accountInfo.userdata).toHaveLength(0); expect(accountInfo.programId).toBe(SystemProgram.programId); });