When this assertion fails (and the same applies to L21), the message is not very helpful, as it does not include information about what was the value of config.hidden[0].

A better way is move the check to a matcher.

```js
// not tested, just an idea
expect(config.hidden[0]).to.satisfy(util.isRegExp);
```