Update client.test.js

This commit is contained in:
Aleksandr Statciuk 2022-10-20 04:15:26 +03:00
parent 4493063d88
commit 4ef229f487
1 changed files with 19 additions and 1 deletions

View File

@ -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()
})