assertvanish
Version:
assert that an object will vanish
18 lines (14 loc) • 460 B
JavaScript
var assertVanish = require('./index');
function doWork() {
var jsdom = require('jsdom');
jsdom.env(/*'http://www.google.com'*/'http://admin.npmjs.org/', [
'http://code.jquery.com/jquery-1.6.1.min.js'
], function(errors, window) {
/*window.$('.gbt').each(function (index, value) {
assertVanish(index, 10000);
assertVanish(value, 10000);
});*/
assertVanish(window, 10000);
});
}
doWork();