[Pkg-javascript-commits] [node-keygrip] 65/68: fix tests

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Fri Jun 27 22:13:29 UTC 2014


This is an automated email from the git hooks/post-receive script.

andrewrk-guest pushed a commit to branch master
in repository node-keygrip.

commit f0bfc5fbcf691c94cb2e2c1b3db9ef3b9c848e91
Author: Jonathan Ong <jonathanrichardong at gmail.com>
Date:   Wed Jun 18 19:44:59 2014 -0700

    fix tests
---
 test.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/test.js b/test.js
index 17d8e49..1bc9268 100644
--- a/test.js
+++ b/test.js
@@ -50,10 +50,8 @@ describe('keygrip([key])', function () {
     assert.equal(false, keys2.decrypt(hash))
   })
 
-  it('should throw on bad inputs', function () {
-    assert.throws(function () {
-      keys.decrypt(hash + 'asdf')
-    })
+  it('should return false on bad inputs', function () {
+    assert.equal(false, keys.decrypt(hash + 'asdf'))
   })
 })
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-keygrip.git



More information about the Pkg-javascript-commits mailing list