Skip to content

Commit 593556e

Browse files
committed
build: change cjs test target
1 parent 2f04de3 commit 593556e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test-commonjs.cjs

+2-5
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,14 @@ const symbol = 'BTC/USDT:USDT';
1919
async function main() {
2020
try {
2121
// proxy
22-
const agent = HttpsProxyAgent('http://51.83.140.52:11230');
2322
// test cjs version
24-
const exchange = new ccxt.bybit({});
25-
exchange.agent = agent;
23+
const exchange = new ccxt.gate({});
2624
const ticker = await exchange.fetchTicker(symbol);
2725
assert(ticker !== undefined);
2826
assert(ticker['symbol'] === symbol);
2927
log.bright.green('[CJS Code] OK');
3028
// test cjs bundle version
31-
const exchangeBundle = new ccxtBundle.bybit({});
32-
exchangeBundle.agent = agent;
29+
const exchangeBundle = new ccxtBundle.gate({});
3330
const tickeBundle = await exchangeBundle.fetchTicker(symbol);
3431
assert(tickeBundle !== undefined);
3532
assert(tickeBundle['symbol'] === symbol);

0 commit comments

Comments
 (0)