Skip to content

Commit

Permalink
Fixed errors testcase.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Nov 9, 2018
1 parent 25ee1ce commit d5d8629
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var aes = require('../index');

function newBuffer(length) {
var buffer = Buffer.alloc(length);
buffer.fill(42);
return buffer;
}

Expand All @@ -29,7 +30,7 @@ module.exports = {
"test-errors-iv-size": function(test) {
var ivSizes = [0, 15, 17, 100];
for (var i = 0; i < 3; i++) {
var keySize = newBuffer(16 + i * 8);
var keySize = 16 + i * 8;

for (var j = 0; j < ivSizes.length; j++) {
test.throws(function() {
Expand Down

0 comments on commit d5d8629

Please sign in to comment.