[Pkg-javascript-commits] [node-browserify-aes] 34/43: tests: consistent ciphers reference
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Sep 7 14:42:00 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 80296d2a21180cd7e40b809637a995729bdace6f
Author: Daniel Cousens <github at dcousens.com>
Date: Fri Jun 16 13:41:53 2017 +1000
tests: consistent ciphers reference
---
test/index.js | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/test/index.js b/test/index.js
index 97c82a4..052aa9f 100644
--- a/test/index.js
+++ b/test/index.js
@@ -5,7 +5,7 @@ var fixtures2 = require('./extra.json')
var _crypto = require('crypto')
var crypto = require('../browser.js')
var modes = require('../modes')
-var types = Object.keys(modes)
+var CIPHERS = Object.keys(modes)
var ebtk = require('evp_bytestokey')
function isGCM (cipher) {
@@ -17,7 +17,7 @@ function isNode10 () {
}
fixtures.forEach(function (fixture, i) {
- types.forEach(function (cipher) {
+ CIPHERS.forEach(function (cipher) {
if (isGCM(cipher)) return
test('fixture ' + i + ' ' + cipher, function (t) {
@@ -100,7 +100,7 @@ fixtures.forEach(function (fixture, i) {
})
})
- types.forEach(function (cipher) {
+ CIPHERS.forEach(function (cipher) {
if (modes[cipher].mode === 'ECB') return
if (isGCM(cipher) && isNode10()) return
@@ -248,11 +248,9 @@ fixtures.forEach(function (fixture, i) {
})
})
-var ciphers = Object.keys(modes)
-
fixtures2.forEach((f, i) => {
test('test case ' + i, function (t) {
- if (ciphers.indexOf(f.algo) === -1) {
+ if (CIPHERS.indexOf(f.algo) === -1) {
console.log('skipping unsupported ' + f.algo + ' test')
return
}
--
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