mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
12 lines
280 B
Plaintext
12 lines
280 B
Plaintext
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()
|
|
})
|
|
}) |