mirror of
https://github.com/liriliri/eruda.git
synced 2026-02-02 09:49:00 +08:00
18 lines
425 B
JavaScript
18 lines
425 B
JavaScript
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 () {
|
|
setTimeout(function () {
|
|
expect($('.eruda-requests .luna-data-grid-node')).toHaveLength(1)
|
|
done()
|
|
}, 500)
|
|
})
|
|
})
|
|
})
|
|
})
|