diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:01:11 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:02:09 +0200 |
commit | 363723fc84f7b8477592e0105aeb331ec9a017af (patch) | |
tree | 29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/hash.js/test/hmac-test.js | |
parent | 5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff) |
node_modules
Diffstat (limited to 'node_modules/hash.js/test/hmac-test.js')
-rw-r--r-- | node_modules/hash.js/test/hmac-test.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/node_modules/hash.js/test/hmac-test.js b/node_modules/hash.js/test/hmac-test.js index 0a9647eec..6fe18e38e 100644 --- a/node_modules/hash.js/test/hmac-test.js +++ b/node_modules/hash.js/test/hmac-test.js @@ -1,6 +1,8 @@ +'use strict'; +/* global describe it */ + var assert = require('assert'); var hash = require('../'); -var utils = hash.utils; describe('Hmac', function() { describe('mixed test vector', function() { @@ -49,10 +51,11 @@ describe('Hmac', function() { it('should not fail at ' + opt.name, function() { var h = hash.hmac(hash.sha256, opt.key, 'hex'); assert.equal(h.update(opt.msg, opt.msgEnc).digest('hex'), opt.res); - var h = hash.hmac(hash.sha256, opt.key, 'hex'); - assert.equal(h.update(opt.msg.slice(0, 10), opt.msgEnc) - .update(opt.msg.slice(10), opt.msgEnc) - .digest('hex'), opt.res); + h = hash.hmac(hash.sha256, opt.key, 'hex'); + assert.equal(h + .update(opt.msg.slice(0, 10), opt.msgEnc) + .update(opt.msg.slice(10), opt.msgEnc) + .digest('hex'), opt.res); }); } }); |