{"size": 539, "ext": "js", "max_stars_repo_path": "test/web3.js", "max_stars_repo_name": "MetaAssetsGlobal/tests-tool", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/web3.js", "max_issues_repo_name": "MetaAssetsGlobal/tests-tool", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/web3.js", "max_forks_repo_name": "MetaAssetsGlobal/tests-tool", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.3684210526, "max_line_length": 75, "alphanum_fraction": 0.6567717996}
/* eslint-env mocha */
/* eslint-disable no-console, no-unused-expressions */

import { expect } from 'chai';
import Sigmate from '../src';

import { accountsArray } from './_harness';

describe('web3', () => {
  it('should return a web3 object with the transaction signer', (done) => {
    new Sigmate(accountsArray).then((sigmate) => {
      expect(sigmate.web3).to.be.an.object;
      expect(sigmate.web3.currentProvider).to.exist;
      expect(sigmate.web3.currentProvider.transaction_signer).to.exist;
      done();
    });
  });
});
