diff --git a/test/transaction.js b/test/transaction.js
index bf00111..1963d90 100644
--- a/test/transaction.js
+++ b/test/transaction.js
@@ -230,7 +230,7 @@ describe('Transaction', function () {
     it('only accepts a a witness stack (Array of Buffers)', function () {
       assert.throws(function () {
         (new Transaction()).setWitness(0, 'foobar')
-      }, /Expected property "1" of type \[Buffer\], got String "foobar"/)
+      }, /Expected property "1" of type \[Buffer], got String "foobar"/)
     })
   })
 })