Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const assert = require("assert");
describe("Ethereum provider", function() {
it("Should return the accounts", async function() {
const accounts = await ethereum.send("eth_accounts");
assert(accounts.length !== 0, "No account was returned");
contract("Greeter", function() {
it("Should give the correct greeting", async function() {
const Greeter = artifacts.require("Greeter");
const greeter = await"Hello, Buidler!");
assert.equal(await greeter.greet(), "Hello, Buidler!");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment