mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-15 10:05:48 +00:00
Update ripple-lib tests to use mocha
This commit is contained in:
18
test/testutils.js
Normal file
18
test/testutils.js
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user