diff options
Diffstat (limited to 'node_modules/stream-http/test/browser/auth.js')
-rw-r--r-- | node_modules/stream-http/test/browser/auth.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/node_modules/stream-http/test/browser/auth.js b/node_modules/stream-http/test/browser/auth.js deleted file mode 100644 index 5c731154d..000000000 --- a/node_modules/stream-http/test/browser/auth.js +++ /dev/null @@ -1,22 +0,0 @@ -var Buffer = require('buffer').Buffer -var test = require('tape') - -var http = require('../..') - -test('authentication', function (t) { - http.get({ - path: '/auth', - auth: 'TestUser:trustno1' - }, function (res) { - var buffers = [] - - res.on('end', function () { - t.ok(new Buffer('You\'re in!').equals(Buffer.concat(buffers)), 'authentication succeeded') - t.end() - }) - - res.on('data', function (data) { - buffers.push(data) - }) - }) -})
\ No newline at end of file |