Fix bugs in compiled library

This commit is contained in:
Chris Clark
2015-08-24 17:28:48 -07:00
parent c4fa4c237c
commit 5f61d80e2d
3 changed files with 6 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ const SerializedObject = require('ripple-lib').SerializedObject;
const AccountSet = require('./tx/account-set.json');
const NotFound = require('./tx/not-found.json');
module.exports = function(request, options={}) {
module.exports = function(request, options = {}) {
_.defaults(options, {
memos: [{
Memo: {

View File

@@ -1,7 +1,7 @@
'use strict';
/* eslint-disable max-len */
const _ = require('lodash');
const assert = require('assert-diff');
const lodash = require('lodash');
const ripple = require('ripple-lib');
@@ -75,11 +75,11 @@ function makeTests(uIntType) {
case undefined:
switch (test.outputMethod) {
case 'to_bytes':
test.expected = Array(rippleType.width).fill(0);
test.expected = _.fill(Array(rippleType.width), 0);
break;
case 'to_json':
case 'to_hex':
test.expected = Array(rippleType.width * 2).fill(0).join('');
test.expected = _.fill(Array(rippleType.width * 2), 0).join('');
break;
}
}