Skip to content

Instantly share code, notes, and snippets.

@sebs
Last active June 30, 2016 15:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebs/74e47e8fba988aaacdf31f868ca8467a to your computer and use it in GitHub Desktop.
Save sebs/74e47e8fba988aaacdf31f868ca8467a to your computer and use it in GitHub Desktop.
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