mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-25 22:55:49 +00:00
JSBN and coverage tests cleanup.
Fixes compiler warning about SJCL. Fixes coverage source highlighting issue. Move JSBN outside of src/js/jsbn/.
This commit is contained in:
@@ -141,10 +141,9 @@ exports.assert = assert;
|
||||
exports.arrayUnique = arrayUnique;
|
||||
exports.toTimestamp = toTimestamp;
|
||||
|
||||
try {
|
||||
exports.sjcl = require('../build/sjcl');
|
||||
} catch(e) {
|
||||
exports.sjcl = require('../../../build/sjcl');
|
||||
}
|
||||
// Going up three levels is needed to escape the src-cov folder used for the
|
||||
// test coverage stuff.
|
||||
exports.sjcl = require('../../../build/sjcl');
|
||||
exports.jsbn = require('../../../src/js/jsbn/jsbn');
|
||||
|
||||
// vim:sw=2:sts=2:ts=8:et
|
||||
|
||||
Reference in New Issue
Block a user