var assert = require('assert')
var Blockchain = require('../src/index')

var url = 'https://common-blockchain.herokuapp.com/'

describe('Blockchain', function() {
  describe('Constructor', function() {
    it('defaults to the bitcoin network', function() {
      var blockchain = new Blockchain(url)

      assert.equal(blockchain.getNetwork(), 'bitcoin')
    })
  })

  describe('getNetwork', function() {
    it('returns the underlying network name', function() {
      var blockchain = new Blockchain(url, 'testnet')

      assert.equal(blockchain.getNetwork(), 'testnet')
    })
  })
})

describe('cb-tests', function() {
	var options = {}

	beforeEach(function() {
		options.blockchain = new Blockchain(url, 'testnet')
	})

	require('cb-tester')(options)
})

@@ -116,17 +116,16 @@
 uapp.com
-/
 '%0A%0Adescr

fix herokuapp URL