As per http://nodejs.org/api/assert.html#assert_assert_throws_block_error_message, `error` can be constructor, `RegExp` or validation function.
Please use RegExp: `/Not enough pubKeys provided/`.