twitter/flight-jasmine — pull request #6 by simonsmith (2013-04-15 13:26:26+00:00)
Title: Re-factor setupComponent to set this.$node as passed element/HTML

Currently the documentation is incorrect. This does not pass:

```javascript
setupComponent('Test');
expect(this.component.$node).toHaveClass('foo');
```
This is because `this.$node` is set to `$('

');` instead of the passed HTML.

I realise this can be worked around (as it is in the test examples) by using `this.$node.find('.foo')` but this doesn't feel very clean.

The reason for my changes are that I actually need to the `this.$node` property to be my element. Example:

In my component:
```javascript
this.$node.append(someHTML);
```

I'm expecting:
```html

someHTML

```

What happens in test:
```html

someHTML

```
Also making use of the API for adding fixtures via [jasmine-jquery](https://github.com/velesin/jasmine-jquery)

Thanks