[Pkg-javascript-commits] [node-browserify-aes] 51/92: dominictarr/crypto-browserify#91 - getCiphers not listCiphers

Bastien Roucariès rouca at moszumanska.debian.org
Sun Jun 4 09:35:19 UTC 2017


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

rouca pushed a commit to branch master
in repository node-browserify-aes.

commit ee3c6fa736fb9e90d5aa6338a32f6ea8785d0d72
Author: Calvin Metcalf <calvin.metcalf at state.ma.us>
Date:   Sun Jan 4 13:10:02 2015 -0500

    dominictarr/crypto-browserify#91 - getCiphers not listCiphers
---
 inject.js     | 5 ++---
 test/index.js | 5 +++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/inject.js b/inject.js
index e426ad7..144a711 100644
--- a/inject.js
+++ b/inject.js
@@ -7,9 +7,8 @@ module.exports = function (crypto, exports) {
   exports.createDecipher = deciphers.createDecipher;
   exports.createDecipheriv = deciphers.createDecipheriv;
   var modes = require('./modes');
-  function listCiphers () {
+  function getCiphers () {
     return Object.keys(modes);
   }
-  exports.listCiphers = listCiphers;
+  exports.listCiphers = exports.getCiphers = getCiphers;
 };
-
diff --git a/test/index.js b/test/index.js
index 7c5e998..7f91c67 100644
--- a/test/index.js
+++ b/test/index.js
@@ -505,3 +505,8 @@ test('autopadding false cipher throws', function (t) {
     nodecipher.final();
   }, 'node');
 });
+
+test('getCiphers works', function (t) {
+  t.plan(1);
+  t.ok(crypto.getCiphers().length, 'get some ciphers');
+})
\ No newline at end of file

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



More information about the Pkg-javascript-commits mailing list