Skip to content

Commit

Permalink
add test to verify toString
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Oct 24, 2014
1 parent 877918b commit e4df972
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/transaction.js
Expand Up @@ -51,6 +51,14 @@ describe('Transaction', function() {
})
})

describe('toString', function() {
it('is just an alias for getId', function() {
var transaction = new Transaction()

assert.equal(transaction.toString, transaction.getId)
})
})

describe('addInput', function() {
// FIXME: not as pretty as could be
// Probably a bit representative of the API
Expand Down

0 comments on commit e4df972

Please sign in to comment.