describe('network', function() { beforeEach(function() { eruda.show('network') }) describe('request', function() { it('xhr', function(done) { $('.eruda-clear-xhr').click() util.ajax.get(window.location.toString(), function() { expect($('.eruda-requests li')).toHaveLength(1) done() }) }) }) })