message: Fix: unit tests after `infura` async refactor
diff: @@ -10,17 +10,17 @@ describe('`providers` module', () => {
  ethersProviders.InfuraProvider.mockClear();
  });
  describe('`infura` provider', () => {
  - test('Connects with defaults', () => {
  - infura();
  + test('Connects with defaults', async () => {
  + await infura();
  expect(ethersProviders.InfuraProvider).toHaveBeenCalled();
  expect(ethersProviders.InfuraProvider).toHaveBeenCalledWith(
  DEFAULT_NETWORK,
  );
  });
  - test('Connects with custom network and api key', () => {
  + test('Connects with custom network and api key', async () => {
  const testNetworkName = 'skynet';
  const testApiKey = '159346284575888';
  - infura({
  + await infura({
  network: testNetworkName,
  apiKey: testApiKey,
  });
  @@ -30,9 +30,9 @@ describe('`providers` module', () => {
  testApiKey,
  );
  });
  - test('Catch the connection error if something goes wrong', () => {
  + test('Catch the connection error if something goes wrong', async () => {
  const testNetworkName = 'error';
  - const provider = infura({ network: testNetworkName });
  + const provider = await infura({ network: testNetworkName });
  expect(ethersProviders.InfuraProvider).toHaveBeenCalled();
  expect(() => ethersProviders.InfuraProvider(testNetworkName)).toThrow();
  expect(provider).toEqual(PROVIDER_PROTO);
  