More tests for amounts validation

This commit is contained in:
Gustavo Cortez 2014-06-25 17:10:00 -03:00
commit c669fc2d17
2 changed files with 89 additions and 31 deletions

View file

@ -5,7 +5,13 @@
//
var sinon = require('sinon');
beforeEach(function() {
config.unitToSatoshi = 100;
config.unitName = 'bits';
});
describe('Check config', function() {
it('unit should be set to BITS in config.js', function() {
expect(config.unitToSatoshi).to.equal(100);
expect(config.unitName).to.equal('bits');