- $("<p>this is a second paragraph</p>").appendTo("h1");
- expect( $("body").html() ).toMatch(/this is a paragraph/);
- });
-
- it("more jquery tests", function() {
- // other tests
- expect( $("h2").html() ).toMatch(/test passes h2/);
- expect( $("h1").html() ).toMatch(/test passes h1/);
- expect( $("h1").html() ).not.toMatch(/^$/);
- expect( $("h1").html() ).not.toMatch(/foobar/);
- });
+ it("more jquery tests", function() {
+ // other tests
+ expect( $("h2").html() ).toMatch(/test passes h2/);
+ expect( $("h1").html() ).toMatch(/test passes h1/);
+ expect( $("h1").html() ).not.toMatch(/^$/);
+ expect( $("h1").html() ).not.toMatch(/foobar/);
+ });