From 4ef229f487d469a51c8d33e8ad460d79309d842e Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 20 Oct 2022 04:15:26 +0300 Subject: [PATCH] Update client.test.js --- tests/client.test.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tests/client.test.js b/tests/client.test.js index 06b18e3..1c029df 100644 --- a/tests/client.test.js +++ b/tests/client.test.js @@ -18,6 +18,15 @@ const config = { Cookie: 'abc=123', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36 Edg/79.0.309.71' + }, + proxy: { + protocol: 'https', + host: '127.0.0.1', + port: 9000, + auth: { + username: 'mikeymike', + password: 'rapunz3l' + } } }, url: 'http://example.com/20210319/1tv.json' @@ -39,7 +48,16 @@ it('can build request', done => { responseType: 'arraybuffer', timeout: 5000, url: 'http://example.com/20210319/1tv.json', - withCredentials: true + withCredentials: true, + proxy: { + protocol: 'https', + host: '127.0.0.1', + port: 9000, + auth: { + username: 'mikeymike', + password: 'rapunz3l' + } + } }) done() })