Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steps in readme make failing tests #6

Open
thekevinbrown opened this issue Mar 6, 2019 · 1 comment
Open

Steps in readme make failing tests #6

thekevinbrown opened this issue Mar 6, 2019 · 1 comment

Comments

@thekevinbrown
Copy link

Version of infeos
0.1.33

Describe the bug
I ran through the steps in the readme, and when I run infeos test I get:

$ infeos test 


  Planet Contract Tests
    1) should create a new planet

  Star Contract Tests
    2) should create a new star
    3) should add a new planet to existing star
    4) should throw when adding a non-existing planet to a star


  0 passing (16ms)
  4 failing

  1) Planet Contract Tests
       should create a new planet:
     TypeError: universeContractInstance.createstar is not a function
      at Context.it (test/PlanetTests.js:43:40)

  2) Star Contract Tests
       should create a new star:
     TypeError: universeContractInstance.createstar is not a function
      at Context.it (test/StarTests.js:43:40)

  3) Star Contract Tests
       should add a new planet to existing star:
     TypeError: universeContractInstance.createstar is not a function
      at Context.it (test/StarTests.js:62:40)

  4) Star Contract Tests
       should throw when adding a non-existing planet to a star:
     TypeError: universeContractInstance.createstar is not a function
      at Context.it (test/StarTests.js:89:40)

To Reproduce
Steps to reproduce the behavior:
Follow the steps in the readme until the end.

Expected behavior
I expected the tests to pass.

Desktop (please complete the following information):

  • OS: macOS X Mojave
  • Version 10.14.2
@Gammanik
Copy link

Gammanik commented Mar 6, 2019

yes this is a problem. adding universe.abi in the src & build folders is solving it.
They just didn't mention you need to do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants