handling further JSHint warnings and TODOs

This commit is contained in:
El RIDO 2018-01-06 13:32:07 +01:00
parent 98d07e0789
commit ffae6111b0
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
7 changed files with 57 additions and 86 deletions

View file

@ -1,5 +1,5 @@
'use strict';
var common = require('../common');
require('../common');
describe('CryptTool', function () {
describe('cipher & decipher', function () {
@ -180,8 +180,7 @@ describe('CryptTool', function () {
// the parameter is used to ensure the test is run more then one time
jsc.property(
'returns random, non-empty keys',
'nat',
function(n) {
function() {
var key = $.PrivateBin.CryptTool.getSymmetricKey(),
result = (key !== '' && keys.indexOf(key) === -1);
keys.push(key);