Last active
June 30, 2016 15:00
-
-
Save sebs/74e47e8fba988aaacdf31f868ca8467a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var meta; | |
var chai = require('chai'); | |
var chaiAsPromised = require('chai-as-promised'); | |
chai.use(chaiAsPromised); | |
var should = require('chai').should(); | |
contract('HumanStandardTokenFactory', function(accounts) { | |
var createHumanStandardToken; | |
beforeEach(function() { | |
meta = HumanStandardTokenFactory.deployed(); | |
createHumanStandardToken = meta.createHumanStandardToken.call; | |
}); | |
it('creates token with address', function() { | |
return createHumanStandardToken(1000, 'foo coin', 0, 'foo') | |
.should | |
.eventually | |
.match(/^0x/); | |
}); | |
it('creates no token when intial amount neg with address', function() { | |
return createHumanStandardToken(0, 'foo coin', 0, 'foo') | |
.should | |
.Throw | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment