[Pkg-javascript-commits] [node-ripemd160] 17/71: added browser tests
Bastien Roucariès
rouca at moszumanska.debian.org
Thu May 4 10:25:38 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-ripemd160.
commit 16a7aa98b8ff6835d4ff8426a6baa954d1433e27
Author: JP Richardson <jprichardson at gmail.com>
Date: Sun Mar 9 11:31:45 2014 -0500
added browser tests
---
.min-wd | 7 +++++++
Makefile | 12 ++++++++++++
lib/ripemd160.js | 6 ------
package.json | 7 +++++--
4 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/.min-wd b/.min-wd
new file mode 100644
index 0000000..91c647b
--- /dev/null
+++ b/.min-wd
@@ -0,0 +1,7 @@
+{
+ "hostname" : "localhost",
+ "port" : 4444,
+ "browsers" : [{
+ "name" : "chrome"
+ }]
+}
\ No newline at end of file
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5836921
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+test: node-test browser-test
+
+node-test:
+ @./node_modules/.bin/mocha
+
+browser-test:
+ @./node_modules/.bin/mochify --wd -R spec
+
+browser-manual-test:
+ node browser-test.js
+
+.PHONY: node-test browser-test
\ No newline at end of file
diff --git a/lib/ripemd160.js b/lib/ripemd160.js
index 08d66d6..19f57a4 100644
--- a/lib/ripemd160.js
+++ b/lib/ripemd160.js
@@ -1,10 +1,4 @@
-
-var _imports = {}
-
-
-_imports.bytesToHex = require('convert-hex').bytesToHex
-_imports.convertString = require('convert-string')
module.exports = ripemd160
diff --git a/package.json b/package.json
index 4f7541d..a657879 100644
--- a/package.json
+++ b/package.json
@@ -6,12 +6,15 @@
"string",
"strings",
"ripemd160",
+ "ripe160",
+ "bitcoin",
"bytes",
"cryptography"
],
"devDependencies": {
- "mocha": "1.*",
- "terst": "0.0.1"
+ "mocha": "~1.17.1",
+ "terst": "~0.1.0",
+ "mochify": "~0.4.2"
},
"repository": {
"url": "https://github.com/cryptocoinjs/ripemd160",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-ripemd160.git
More information about the Pkg-javascript-commits
mailing list