Update ripple-lib tests to use mocha

This commit is contained in:
wltsmrz
2013-09-08 17:33:08 -07:00
parent b9e29e8b6c
commit 25401bd08d
7 changed files with 823 additions and 851 deletions

18
test/testutils.js Normal file
View File

@@ -0,0 +1,18 @@
exports.get_config = get_config;
function get_config() {
var config = { };
try {
config = require('./config');
} catch(exception) {
config = require('./config-example');
}
return load_config(config);
}
exports.load_config = load_config;
function load_config(config) {
return( require('../src/js/ripple/config')).load(config);
}