fix settings.json schema to allow null to

'walletSize', 'transferRate', 'emailHash' and
'walletLocator' fields so they
can be cleared

cover api/transaction/settings.js with tests
This commit is contained in:
Ivan Tivonenko
2015-07-22 05:53:54 +03:00
parent 4787e5d29a
commit a99452b773
8 changed files with 89 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ const AccountFields = utils.common.constants.AccountFields;
const Transaction = utils.common.core.Transaction;
// Emptry string passed to setting will clear it
const CLEAR_SETTING = '';
const CLEAR_SETTING = null;
function setTransactionFlags(transaction, values) {
const keys = Object.keys(values);