Skip to content

Commit

Permalink
empty provider test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevcs committed May 24, 2024
1 parent adbaf49 commit 3de1338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web3/test/unit/web3.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import { Web3 } from '../../src/web3';

describe('Web3 object', () => {
it('should be able to set and read web3 providers', () => {
const web3NoProvider = new Web3();
const web3NoProvider = new Web3("");
expect(web3NoProvider).toBeTruthy();
expect(web3NoProvider.provider).toBeUndefined();
expect(web3NoProvider.provider).toEqual("");

const web3 = new Web3('http://somenode');
expect(web3).toBeTruthy();
Expand Down

0 comments on commit 3de1338

Please sign in to comment.