Looks like you may be better off using a [`setFixture`](https://github.com/velesin/jasmine-jquery#html-fixtures) call from jasmine-jquery.