[Pkg-javascript-commits] [node-ripemd160] 27/71: ripemd160: removed terst for assert

Bastien Roucariès rouca at moszumanska.debian.org
Thu May 4 10:25:39 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 50bd612b7ff2b75082108388acd43b42d2463ee7
Author: JP Richardson <jprichardson at gmail.com>
Date:   Wed Dec 31 05:06:19 2014 -0600

    ripemd160: removed terst for assert
---
 package.json           | 3 +--
 test/ripemd160.test.js | 5 +++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/package.json b/package.json
index 7e0692f..8785387 100644
--- a/package.json
+++ b/package.json
@@ -14,8 +14,7 @@
   "license": "BSD-3",
   "devDependencies": {
     "mocha": "~1.17.1",
-    "mochify": "^2.1.0",
-    "terst": "~0.1.0"
+    "mochify": "^2.1.0"
   },
   "repository": {
     "url": "https://github.com/cryptocoinjs/ripemd160",
diff --git a/test/ripemd160.test.js b/test/ripemd160.test.js
index 2eb89f5..2353c76 100644
--- a/test/ripemd160.test.js
+++ b/test/ripemd160.test.js
@@ -1,3 +1,4 @@
+var assert = require('assert')
 var ripemd160 = require('../lib/ripemd160')
 
 require('terst')
@@ -6,14 +7,14 @@ describe('+ ripemd160(input)', function() {
   describe('> when input is a string', function() {
     it('should compute the ripemd160 hash', function() {
       var input = "hello";
-      EQ (ripemd160(input).toString('hex'), "108f07b8382412612c048d07d13f814118445acd")
+      assert.equal(ripemd160(input).toString('hex'), "108f07b8382412612c048d07d13f814118445acd")
     })
   })
 
   describe('> when input is a buffer', function() {
     it('should compute the ripemd160 hash', function() {
       var input = new Buffer("hello");
-      EQ (ripemd160(input).toString('hex'), "108f07b8382412612c048d07d13f814118445acd")
+      assert.equal(ripemd160(input).toString('hex'), "108f07b8382412612c048d07d13f814118445acd")
     })
   })
 })

-- 
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