From 81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 Mon Sep 17 00:00:00 2001 From: Piotr Russ Date: Wed, 18 Nov 2020 23:26:45 +0100 Subject: rm node_modules --- .../stream-http/test/browser/disable-fetch.js | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 node_modules/stream-http/test/browser/disable-fetch.js (limited to 'node_modules/stream-http/test/browser/disable-fetch.js') diff --git a/node_modules/stream-http/test/browser/disable-fetch.js b/node_modules/stream-http/test/browser/disable-fetch.js deleted file mode 100644 index b50aa71..0000000 --- a/node_modules/stream-http/test/browser/disable-fetch.js +++ /dev/null @@ -1,37 +0,0 @@ -var Buffer = require('buffer').Buffer -var test = require('tape') - -var http = require('../..') - -test('disable fetch', function (t) { - var originalFetch - if (typeof fetch === 'function') { - originalFetch = fetch - } - - var fetchCalled = false - fetch = function (input, options) { - fetchCalled = true - if (originalFetch) { - return originalFetch(input, options) - } - } - - http.get({ - path: '/browserify.png', - mode: 'disable-fetch' - }, function (res) { - t.ok(!fetchCalled, 'fetch was not called') - - if (originalFetch) { - fetch = originalFetch - } - - res.on('end', function () { - t.ok(res.headers['content-type'] === 'image/png', 'content-type was set correctly') - t.end() - }) - - res.on('data', function () {}) - }) -}) -- cgit v1.2.3