mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-20 15:20:40 -04:00
handling further JSHint warnings and TODOs
This commit is contained in:
parent
98d07e0789
commit
ffae6111b0
7 changed files with 57 additions and 86 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue