[Pkg-javascript-commits] [node-browserify-aes] 28/92: only test gcm on 0.11 and above

Bastien Roucariès rouca at moszumanska.debian.org
Sun Jun 4 09:35:17 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 8213010a6966f733670e207579b54e285b82a405
Author: Calvin Metcalf <cmetcalf at appgeo.com>
Date:   Tue Nov 11 12:47:19 2014 -0500

    only test gcm on 0.11 and above
---
 test/index.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/index.js b/test/index.js
index 9e8ccbe..b4613c6 100644
--- a/test/index.js
+++ b/test/index.js
@@ -8,6 +8,9 @@ var ebtk = require('../EVP_BytesToKey');
 function isGCM(cipher) {
   return modes[cipher].mode === 'GCM';
 }
+function isNode10() {
+  return process.version && process.version.split('.').length === 3 && parseInt(process.version.split('.')[1], 10) <= 10;
+}
 fixtures.forEach(function (fixture, i) {
   //var ciphers = fixture.results.ciphers = {};
   types.forEach(function (cipher) {
@@ -95,6 +98,9 @@ fixtures.forEach(function (fixture, i) {
       if (modes[cipher].mode === 'ECB') {
         return;
       }
+      if (isGCM(cipher) && isNode10()) {
+        return;
+      }
       test('fixture ' + i + ' ' + cipher + '-iv', function (t) {
         if (isGCM(cipher)) {
           t.plan(4);

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