Fix typo in invalid MemoData error

This commit is contained in:
wltsmrz
2014-08-15 20:18:47 -07:00
parent 60069d0a28
commit 81e805fcb9
2 changed files with 3 additions and 3 deletions

View File

@@ -612,7 +612,7 @@ Transaction.prototype.addMemo = function(type, data) {
}
if (!/(undefined|string)/.test(typeof data)) {
throw new Error('MemoData must be string');
throw new Error('MemoData must be a string');
}
function toHex(str) {

View File

@@ -1050,7 +1050,7 @@ describe('Transaction', function() {
assert.throws(function() {
transaction.addMemo(1);
}, 'MemoType must be a string');
}, /^Error: MemoType must be a string$/);
});
it('Add Memo - invalid MemoData', function() {
@@ -1059,7 +1059,7 @@ describe('Transaction', function() {
assert.throws(function() {
transaction.addMemo('key', 1);
}, 'MemoData must be a string');
}, /^Error: MemoData must be a string$/);
});
it('Construct AccountSet transaction', function() {