Merge branch 'develop' into unfunded-orders

This commit is contained in:
wltsmrz
2014-08-16 02:45:35 -07:00
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() {