Skip to content

Commit

Permalink
fix build on node 8
Browse files Browse the repository at this point in the history
buffer behaviour change
caused by: nodejs/node#12012
landed in: nodejs/node@682573c11
  • Loading branch information
leonardodino committed Oct 31, 2017
1 parent c3204ce commit 412772f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ test('test encryption error handling', function(t){

t.throws(function(){
basicCrypto.decrypt(invalidhex)
}, /Invalid hex/i, 'Invalid hex string')
}, /Invalid hex|Missing HMAC/i, 'Invalid hex string')

t.end()
})
Expand Down Expand Up @@ -274,7 +274,7 @@ test('decryption - reject invalid input', function(t){
t.throws(function(){
var invalidhex = parts[0]
basicCrypto.decrypt(invalidhex)
}, /Invalid hex/i, 'Invalid hex string')
}, /Invalid hex|Missing HMAC/i, 'Invalid hex string')

t.throws(function(){
basicCrypto.decrypt()
Expand Down

0 comments on commit 412772f

Please sign in to comment.