From e4df972832cf72f2168981c6d927cec809f78854 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Fri, 24 Oct 2014 14:58:58 +1100 Subject: [PATCH] add test to verify toString --- test/transaction.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/transaction.js b/test/transaction.js index d07061adb7..4e7c4baaaa 100644 --- a/test/transaction.js +++ b/test/transaction.js @@ -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