This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/stream-http/test/browser/error.js.disabled
2019-08-11 20:48:02 +02:00

12 lines
No EOL
280 B
Text

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()
})
})