remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
remix-project/remix-simulator/test/accounts.js

19 lines
412 B

var Web3 = require('web3')
var RemixSim = require('../index.js')
let web3 = new Web3()
var assert = require('assert')
describe("Accounts", function() {
before(function() {
let provider = new RemixSim.Provider()
web3.setProvider(provider)
})
it("should get a list of accounts", async function() {
let accounts = await web3.eth.getAccounts()
assert.notEqual(accounts.length, 0)
})
});