Git Product home page Git Product logo

syncfabcontract's Introduction

User Accepttance Tests for the contracts that we use to conduct our crowdsales

  Contract: MFGToken
    #MFGToken()
      ✓ should return the correct totalSupply after construction
      ✓ should assign all tokens to the owner

  Contract: SyncFabCappedCrowdsale
    creating a valid crowdsale
      ✓ should fail with zero cap
    accepting payments
      ✓ should accept payments within cap (126ms)
      ✓ should reject payments outside cap (99ms)
      ✓ should reject payments that exceed cap
    ending
      ✓ should not be ended if under cap (126ms)
      ✓ should not be ended if just under cap (69ms)
      ✓ should be ended if cap reached (73ms)

  Contract: SyncFabCrowdsale
    ✓ should have the same owner as its token's owner
    ✓ should be ended only after end (130ms)
    accepting payments
      ✓ should reject payments before start
      ✓ should accept payments after start (219ms)
      ✓ should reject payments after end (151ms)
    high-level purchase
      ✓ should log purchase (80ms)
      ✓ should increase weiRaised (71ms)
      ✓ should assign tokens to sender (68ms)
      ✓ should forward funds to wallet (212ms)
    low-level purchase
      ✓ should log purchase (59ms)
      ✓ should increase weiRaised (87ms)
      ✓ should assign tokens to beneficiary (70ms)
      ✓ should forward funds to wallet (219ms)
 
  22 passing (7s)

syncfabcontract's People

Contributors

ledinhhuy88 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.