Skip to content

Commit ea292ae

Browse files
committed
fix: test
1 parent 0c8c4fd commit ea292ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/network.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ describe('network', function () {
77
it('xhr', function (done) {
88
$('.eruda-clear-xhr').click()
99
util.ajax.get(window.location.toString(), function () {
10-
expect($('.eruda-requests .luna-data-grid-node')).toHaveLength(1)
11-
done()
10+
setTimeout(function () {
11+
expect($('.eruda-requests .luna-data-grid-node')).toHaveLength(1)
12+
done()
13+
}, 500)
1214
})
1315
})
1416
})

0 commit comments

Comments
 (0)