8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 557ef40 commit f3ab424Copy full SHA for f3ab424
threads-api/__test__/getToken.test.ts renamed to threads-api/__test__/getTokenWithProxy.test.ts
@@ -1,10 +1,15 @@
1
import { ThreadsAPI } from '../src/threads-api';
2
import { TIMEOUT, rawCredentials as credentials } from './utils/constants';
3
import { describeIf } from './utils/describeIf';
4
+import * as HttpsProxyAgent from "https-proxy-agent";
5
+
6
+// Proxy server details
7
+var proxy = 'http://PROXYUSERNAME:PROXYPWD@PROXYHOST:PROXYPORT';
8
9
describeIf(!!credentials)('getToken', () => {
10
const threadsAPI = new ThreadsAPI({
11
verbose: true,
12
+ httpsAgent: new HttpsProxyAgent.HttpsProxyAgent(proxy),
13
...credentials,
14
});
15
0 commit comments