velesin/jasmine-jquery — pull request #163 by f1sherman (2014-01-13 02:28:34+00:00)
Title: Match if the surrounding whitespace in the input matches the element text

Currently the text in the element is trimmed before comparing. This is helpful
in some cases, but we're unable to match intentional surrounding whitespace.

For instance, given an element like this:
```html

foo

```
The following matcher will always fail:
```javascript
expect($div).toHaveText(' foo');
```

This fixes that case so that the matcher passes if the surrounding whitespace
in the input matches the surrounding whitespace in the element text exactly.