UNPKG

assertvanish

Version:
20 lines (17 loc) 383 B
var assertVanish = require('./index.js'); function test() { var http = require('http'); var options = { host: 'www.google.com', port: 80, path: '/', method: 'GET' }; var callback = function(){ console.error('callback fired...'); assertVanish(callback, 10000); }; http.request(options, callback).end(); console.error('requested...'); } test();