From b05d17f9049246d3a2ef42255e8df6b21ad5ea61 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Thu, 29 May 2014 16:06:08 +1000 Subject: [PATCH] Script: adds missing exception regex --- test/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/script.js b/test/script.js index 1499088..85cd768 100644 --- a/test/script.js +++ b/test/script.js @@ -22,7 +22,7 @@ describe('Script', function() { }) it('throws an error when input is not an array', function() { - assert.throws(function(){ new Script({}) }) + assert.throws(function(){ new Script({}) }, /Expected Array, got/) }) }) @@ -153,7 +153,7 @@ describe('Script', function() { assert.throws(function() { Script.createMultisigScriptSig(signatures.slice(1), redeemScript) - }) + }, /Not enough signatures provided/) }) }) })