Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
move lib tests to test/e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Feb 16, 2017
1 parent 9a478f0 commit 0465034
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 35 deletions.
3 changes: 0 additions & 3 deletions js/npm/etherscan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
"Parity",
"Promise"
],
"scripts": {
"test": "node test/smoke.spec.js"
},
"peerDependencies": {
"es6-promise": "^4.0.5",
"isomorphic-fetch": "^2.2.1",
Expand Down
3 changes: 0 additions & 3 deletions js/npm/jsonrpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
"RPC",
"Parity"
],
"scripts": {
"test": "node test/smoke.spec.js"
},
"peerDependencies": {
"babel-polyfill": "^6.22.0"
},
Expand Down
3 changes: 0 additions & 3 deletions js/npm/parity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
"Parity",
"Promise"
],
"scripts": {
"test": "node test/smoke.spec.js"
},
"peerDependencies": {
"es6-promise": "^4.0.5",
"isomorphic-fetch": "^2.2.1",
Expand Down
3 changes: 0 additions & 3 deletions js/npm/shapeshift/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
"Parity",
"Promise"
],
"scripts": {
"test": "node test/smoke.spec.js"
},
"peerDependencies": {
"es6-promise": "^4.0.5",
"isomorphic-fetch": "^2.2.1",
Expand Down
20 changes: 4 additions & 16 deletions js/scripts/prepare-npm-libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ cp LICENSE npm/jsonrpc/LICENSE
mkdir -p npm/jsonrpc/src
cp -R src/jsonrpc/* npm/jsonrpc/src
env LIBRARY=jsonrpc npm run ci:build:npm

pushd .; cd npm/jsonrpc
npm test
popd
node test/e2e/jsonrpc.smoke.js

printf "\n\n"
printf "\n***************************************"
Expand All @@ -32,10 +29,7 @@ cp src/parity.npm.js npm/parity/src/index.js
cp -R src/abi npm/parity/src
cp -R src/api npm/parity/src
env LIBRARY=parity npm run ci:build:npm

pushd .; cd npm/parity
npm test
popd
node test/e2e/parity.smoke.js

printf "\n\n"
printf "\n***************************************"
Expand All @@ -45,10 +39,7 @@ cp LICENSE npm/etherscan/LICENSE
mkdir -p npm/etherscan/src
cp -LR src/3rdparty/etherscan/* npm/etherscan/src
env LIBRARY=etherscan npm run ci:build:npm

pushd .; cd npm/etherscan
npm test
popd
node test/e2e/etherscan.smoke.js

printf "\n\n"
printf "\n***************************************"
Expand All @@ -58,10 +49,7 @@ cp LICENSE npm/shapeshift/LICENSE
mkdir -p npm/shapeshift/src
cp -R src/3rdparty/shapeshift/* npm/shapeshift/src
env LIBRARY=shapeshift npm run ci:build:npm

pushd .; cd npm/shapeshift
npm test
popd
node test/e2e/shapeshift.smoke.js

# exit with exit code
exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
const assert = require('assert');

assert.doesNotThrow(() => {
const etherscan = require('..');
const etherscan = require('../../npm/etherscan');
}, Error, 'requiring @parity/etherscan fails');
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
const assert = require('assert');

assert.doesNotThrow(() => {
require('..');
require('../../npm/jsonrpc');
}, Error, 'requiring @parity/jsonrpc fails');

assert.doesNotThrow(() => {
require('../index.json');
require('../../npm/jsonrpc/index.json');
}, Error, 'requiring @parity/jsonrpc/index.json fails');
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
const assert = require('assert');

assert.doesNotThrow(() => {
const parity = require('..');
}, Error, 'requiring @parity/parity fails');
const parity = require('../../npm/parity');
}, Error, 'requiring @parity/parity.js fails');

const parity = require('..');
const parity = require('../../npm/parity');
assert.ok(parity);
assert.ok(parity.Api);
assert.ok(parity.Abi);
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
const assert = require('assert');

assert.doesNotThrow(() => {
const shapeshift = require('..');
const shapeshift = require('../../npm/shapeshift');
}, Error, 'requiring @parity/shapeshift fails');

0 comments on commit 0465034

Please sign in to comment.