Sha256: 0d8054eb5d28ab50ce614af29e3e118588e8ec5c9315cfcb912c965fd2c4ca00
Contents?: true
Size: 280 Bytes
Versions: 43
Compression:
Stored size: 280 Bytes
Contents
var Buffer = require('buffer').Buffer var test = require('tape') var http = require('../..') test('error handling', function (t) { var req = http.get('https://0.0.0.0:0/fail.txt') req.on('error', function (err) { t.ok(err && ('message' in err), 'got error') t.end() }) })
Version data entries
43 entries across 42 versions & 15 rubygems