vojtajina/karma-jstd — pull request #7 by gregersrygg (2013-08-09 09:30:08+00:00)
Title: Return a reference to the injected html

In JsTestDriver you could get a reference to the injected html, so you don't need to search for the element in the document:

/*:DOC foo =

foo

*/
assertNotUndefined(this.foo);

With injectHtml:

var foo = injectHTML("

foo

");
assertNotUndefined(foo);