danielfm/jshamcrest — pull request #16 by fatbrain (2012-11-29 13:42:41+00:00)
Title: EqualTo shorthand

Used when creating value-equalTo semantic matchers.

```javascript
myMatcher: JsHamcrest.EqualTo(function (matcher) {
return new JsHamcrest.SimpleMatcher({
...
});
})
```
Instead of

```javascript
myMatche: function (matcherOrValue) {
if (!JsHamcrest.isMatcher(matcherOrValue)) {
matcherOrValue = JsHamcrest.Matchers.equalTo(matcherOrValue);
}

return new JsHamcrest.SimpleMatcher({
...
});
}
```

Cheers,
Jonas