mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-29 16:45:49 +00:00
Compile test cases to run tests without using Babel
This commit is contained in:
10
bin/ci.sh
10
bin/ci.sh
@@ -24,9 +24,13 @@ unittest() {
|
|||||||
npm run coveralls
|
npm run coveralls
|
||||||
|
|
||||||
# test compiled version in "dist/npm"
|
# test compiled version in "dist/npm"
|
||||||
ln -nfs ../../dist/npm/core test/node_modules/ripple-lib
|
babel -D --optional runtime --ignore "**/node_modules/**" -d test-compiled/ test/
|
||||||
ln -nfs ../../dist/npm test/node_modules/ripple-api
|
echo "--reporter spec --timeout 5000 --slow 500" > test-compiled/mocha.opts
|
||||||
npm test
|
mkdir -p test-compiled/node_modules
|
||||||
|
ln -nfs ../../dist/npm/core test-compiled/node_modules/ripple-lib
|
||||||
|
ln -nfs ../../dist/npm test-compiled/node_modules/ripple-api
|
||||||
|
mocha --opts test-compiled/mocha.opts test-compiled
|
||||||
|
rm -rf test-compiled
|
||||||
}
|
}
|
||||||
|
|
||||||
oneNode() {
|
oneNode() {
|
||||||
|
|||||||
2
test/fixtures/api/rippled/account-tx.js
vendored
2
test/fixtures/api/rippled/account-tx.js
vendored
@@ -3,7 +3,7 @@
|
|||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const hashes = require('../../hashes');
|
const hashes = require('../../hashes');
|
||||||
const addresses = require('../../addresses');
|
const addresses = require('../../addresses');
|
||||||
const SerializedObject = require('../../../../src/core').SerializedObject;
|
const SerializedObject = require('ripple-lib').SerializedObject;
|
||||||
const AccountSet = require('./tx/account-set.json');
|
const AccountSet = require('./tx/account-set.json');
|
||||||
const NotFound = require('./tx/not-found.json');
|
const NotFound = require('./tx/not-found.json');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user