summaryrefslogtreecommitdiffstats
path: root/test/issue-1670.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/issue-1670.js')
-rw-r--r--test/issue-1670.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/issue-1670.js b/test/issue-1670.js
new file mode 100644
index 0000000..c27bdb2
--- /dev/null
+++ b/test/issue-1670.js
@@ -0,0 +1,12 @@
+'use strict'
+
+const { test } = require('tap')
+const { request } = require('..')
+
+test('https://github.com/mcollina/undici/issues/810', async (t) => {
+ const { body } = await request('https://api.github.com/user/emails')
+
+ await body.text()
+
+ t.end()
+})