[Pkg-javascript-commits] [node-randomfill] 06/47: add tests for	throwing
    Bastien Roucariès 
    rouca at moszumanska.debian.org
       
    Fri Dec 15 09:52:51 UTC 2017
    
    
  
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-randomfill.
commit 8a19d30b88d96918729e6f51388d1bbef1d71f15
Author: Calvin Metcalf <cmetcalf at appgeo.com>
Date:   Mon Jan 19 16:33:04 2015 -0500
    add tests for throwing
---
 test.js | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/test.js b/test.js
index b893e9a..5a6648c 100644
--- a/test.js
+++ b/test.js
@@ -24,4 +24,10 @@ if (process.browser) {
     t.plan(1);
     t.throws(randomBytes.bind(null, 65537));
   });
+  test('requesting to much throws async', function (t) {
+    t.plan(1);
+    t.throws(randomBytes.bind(null, 65537, function () {
+      t.ok(false, 'should not get here');
+    }));
+  });
 }
\ No newline at end of file
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-randomfill.git
    
    
More information about the Pkg-javascript-commits
mailing list