mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
23 lines
524 B
JavaScript
23 lines
524 B
JavaScript
describe('network', function ()
|
|
{
|
|
var tool = eruda.get('network'),
|
|
$tool = $('.eruda-network');
|
|
|
|
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();
|
|
});
|
|
});
|
|
});
|
|
}); |