0
0
mirror of https://github.com/OpenBazaar/openbazaar-desktop synced 2025-10-06 00:22:47 +02:00

added test for the externally funded orders boolean in the wllet cur config

This commit is contained in:
Rob Misiorowski
2019-10-25 14:58:17 -06:00
parent 00af178d05
commit d3be8c9a98
3 changed files with 7 additions and 10 deletions

View File

@@ -3,8 +3,6 @@ import app from '../app';
import bitcoreLib from 'bitcore-lib';
import bech32 from 'bech32';
console.log('add test for externallyfundablesugar');
// If a currency does not support fee bumping or you want to disable it, do not provide a
// feeBumpTransactionSize setting.

View File

@@ -8,7 +8,7 @@
"scripts": {
"start": "cross-env NODE_ENV=development npm-run-all sass:build process-index --parallel sass:watch index:watch browsersync start-app",
"start-app": "cross-env NODE_ENV=development electron .",
"test": "cross-env BABEL_ENV=development mocha -g 'the Listing model' --compilers js:@babel/register --recursive --exit",
"test": "cross-env BABEL_ENV=development mocha -g 'the crypto currencies data module' --compilers js:@babel/register --recursive --exit",
"test:watch": "npm run test -- --watch",
"lint": "eslint .",
"lint:watch": "nodemon -e js -x \"npm run lint\"",

View File

@@ -90,13 +90,6 @@ describe('the crypto currencies data module', () => {
});
});
it('that requires the averageModeratedTransactionSize to be a number > 0', () => {
currencies.forEach(cur => {
expect(typeof cur.averageModeratedTransactionSize === 'number' &&
cur.averageModeratedTransactionSize > 0).to.equal(true);
});
});
it('that requires the feeBumpTransactionSize to be undefined or a number > 0', () => {
currencies.forEach(cur => {
expect(typeof cur.feeBumpTransactionSize === 'undefined' ||
@@ -184,6 +177,12 @@ describe('the crypto currencies data module', () => {
}
});
});
it('that require an externallyFundableOrders boolean', () => {
currencies.forEach(cur => {
expect(typeof cur.externallyFundableOrders).to.equal('boolean');
});
});
});
describe('has a supportedWalletCurs function', () => {