require('/jquery.js'); describe('transactions', function() { it("should add stuff in one test...", function() { $('#test').append('

New Stuff

'); expect($('#test h1#added').length).toEqual(1); }); it("... should have been removed before the next starts", function() { expect($('#test h1#added').length).toEqual(0); }); });