Guest User

Untitled

a guest
Nov 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. const SimpleContract = artifacts.require("SimpleContract");
  2.  
  3. contract('SimpleContract', (accounts) => {
  4.  
  5. it("should return the name", async ()=> {
  6. const instance = await SimpleContract.deployed();
  7. const value = await instance.getName();
  8.  
  9. assert.equal(value, 'my name');
  10. });
  11. });
Add Comment
Please, Sign In to add comment