Skip to content

Run tests: Commit 6b4319c5a1be4bf9266bf88cf574c7bcd2b2044a #3

Run tests: Commit 6b4319c5a1be4bf9266bf88cf574c7bcd2b2044a

Run tests: Commit 6b4319c5a1be4bf9266bf88cf574c7bcd2b2044a #3

GitHub Actions / Mocha Tests succeeded Nov 28, 2023 in 1s

Mocha Tests ✅

Tests passed successfully

✅ test-report.json

123 tests were completed in 56s with 122 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
test/1-api.spec.js 47✅ 713ms
test/2-api-filter.spec.js 4✅ 2s
test/3-report-signature.spec.js 3✅ 1⚪ 2s
test/4-queue-base.spec.js 30✅ 14s
test/5-queue-load.spec.js 1✅ 16s
workers/loc.api/helpers/test/filter-response.spec.js 19✅ 12ms
workers/loc.api/helpers/test/split-symbol-pairs.spec.js 14✅ 2ms
workers/loc.api/responder/test/responder.spec.js 4✅ 4ms

✅ test/1-api.spec.js

API
  ✅ it should be successfully auth
  ✅ it should be successfully auth, with auth token
  ✅ it should be successfully performed by the generateToken method
  ✅ it should be successfully performed by the getAccountSummary method
  ✅ it should be successfully performed by the getActiveOrders method
  ✅ it should be successfully performed by the getActivePositions method
  ✅ it should be successfully performed by the getCandles method
  ✅ it should be successfully performed by the getChangeLogs method
  ✅ it should be successfully performed by the getFilterModels method
  ✅ it should be successfully performed by the getFundingCreditHistory method
  ✅ it should be successfully performed by the getFundingLoanHistory method
  ✅ it should be successfully performed by the getFundingOfferHistory method
  ✅ it should be successfully performed by the getFundingTrades method
  ✅ it should be successfully performed by the getLedgers method
  ✅ it should be successfully performed by the getLedgers method, without params
  ✅ it should be successfully performed by the getLogins method
  ✅ it should be successfully performed by the getMovementInfo method
  ✅ it should be successfully performed by the getMovements method
  ✅ it should be successfully performed by the getMovements method, without MinLimitParamError error
  ✅ it should be successfully performed by the getMovements method, without params
  ✅ it should be successfully performed by the getOrders method
  ✅ it should be successfully performed by the getOrderTrades method
  ✅ it should be successfully performed by the getOrderTrades method, where the symbol is an array with length equal to one
  ✅ it should be successfully performed by the getPayInvoiceList method
  ✅ it should be successfully performed by the getPositionsAudit method
  ✅ it should be successfully performed by the getPositionsHistory method
  ✅ it should be successfully performed by the getPositionsSnapshot method
  ✅ it should be successfully performed by the getPublicTrades method
  ✅ it should be successfully performed by the getPublicTrades method, where the symbol is an array with length equal to one
  ✅ it should be successfully performed by the getSettings method
  ✅ it should be successfully performed by the getStatusMessages method
  ✅ it should be successfully performed by the getSymbols method
  ✅ it should be successfully performed by the getTickersHistory method
  ✅ it should be successfully performed by the getTrades method
  ✅ it should be successfully performed by the getTrades method, where the symbol is an array
  ✅ it should be successfully performed by the getTrades method, where the symbol is an array with length equal to one
  ✅ it should be successfully performed by the getUsersTimeConf method
  ✅ it should be successfully performed by the getWallets method, without params
  ✅ it should be successfully performed by the getWeightedAveragesReport method
  ✅ it should be successfully performed by the isSyncModeConfig method
  ✅ it should be successfully performed by the updateSettings method
  ✅ it should not be successfully auth
  ✅ it should not be successfully performed by a fake method
  ✅ it should not be successfully performed by the getLedgers method, a greater limit is needed
  ✅ it should not be successfully performed by the getMovements method
  ✅ it should not be successfully performed by the getOrderTrades method, where the symbol is an array
  ✅ it should not be successfully performed by the getPublicTrades method, where the symbol is an array with length more then one

✅ test/2-api-filter.spec.js

API filter
  ✅ it should be successfully performed by the api methods
  ✅ it should be successfully performed by the getLedgersCsv method
  ✅ it should be successfully performed by the getMultipleCsv method
  ✅ it should not be successfully performed by the api methods

✅ test/3-report-signature.spec.js

Signature
  ⚪ it should be successfully performed by the /verify-digital-signature route
  ✅ it should be successfully performed by the getLedgersCsv method
  ✅ it should be successfully performed by the getMultipleCsv method
  ✅ it should be successfully performed by the verifyDigitalSignature method

✅ test/4-queue-base.spec.js

Queue
  ✅ it should be successfully performed by the getActiveOrdersCsv method
  ✅ it should be successfully performed by the getActivePositionsCsv method
  ✅ it should be successfully performed by the getCandlesCsv method
  ✅ it should be successfully performed by the getChangeLogsCsv method
  ✅ it should be successfully performed by the getFundingCreditHistoryCsv method
  ✅ it should be successfully performed by the getFundingLoanHistoryCsv method
  ✅ it should be successfully performed by the getFundingOfferHistoryCsv method
  ✅ it should be successfully performed by the getFundingTradesCsv method
  ✅ it should be successfully performed by the getLedgersCsv method
  ✅ it should be successfully performed by the getLedgersCsv method, with multiple users
  ✅ it should be successfully performed by the getLoginsCsv method
  ✅ it should be successfully performed by the getMovementsCsv method
  ✅ it should be successfully performed by the getMovementsCsv method, where amount < 0
  ✅ it should be successfully performed by the getMovementsCsv method, where amount > 0
  ✅ it should be successfully performed by the getMultipleCsv method
  ✅ it should be successfully performed by the getOrdersCsv method
  ✅ it should be successfully performed by the getOrderTradesCsv method
  ✅ it should be successfully performed by the getPayInvoiceListCsv method
  ✅ it should be successfully performed by the getPositionsAuditCsv method
  ✅ it should be successfully performed by the getPositionsHistoryCsv method
  ✅ it should be successfully performed by the getPublicTradesCsv method
  ✅ it should be successfully performed by the getStatusMessagesCsv method
  ✅ it should be successfully performed by the getTickersHistoryCsv method
  ✅ it should be successfully performed by the getTradesCsv method
  ✅ it should be successfully performed by the getWalletsCsv method
  ✅ it should be successfully performed by the getWeightedAveragesReportCsv method
  ✅ it should not be successfully auth by the getLedgersCsv method
  ✅ it should not be successfully performed by the getMultipleCsv method
  ✅ it should not be successfully performed by the getPublicTradesCsv method, time frame more then a month
  ✅ it should not be successfully performed by the getPublicTradesCsv method, with symbol array

✅ test/5-queue-load.spec.js

Queue load
  ✅ it should be successfully performed by the getLedgersCsv method, with 100 users

✅ workers/loc.api/helpers/test/filter-response.spec.js

filterResponse helper
  ✅ it should be successful by not consider capital letters
  ✅ it should be successful with $eq condition
  ✅ it should be successful with $gt and $like and $nin conditions
  ✅ it should be successful with $gt condition
  ✅ it should be successful with $gte condition
  ✅ it should be successful with $in condition
  ✅ it should be successful with $isNotNull operator
  ✅ it should be successful with $isNull operator
  ✅ it should be successful with $like condition using <_>
  ✅ it should be successful with $like condition using <%>
  ✅ it should be successful with $like condition using escaping <_>
  ✅ it should be successful with $like condition using escaping <%>
  ✅ it should be successful with $like condition, not consider capital letters
  ✅ it should be successful with $lt condition
  ✅ it should be successful with $lte condition
  ✅ it should be successful with $ne condition
  ✅ it should be successful with $nin condition
  ✅ it should be successful with $not condition
  ✅ it should be successful with $or operator

✅ workers/loc.api/helpers/test/split-symbol-pairs.spec.js

splitSymbolPairs helper
  ✅ BTC:CNHT pair
  ✅ BTCEOS pair
  ✅ DUSK:USD pair
  ✅ EURUSD pair
  ✅ fBTCUSD pair
  ✅ MATIC coin, without separator
  ✅ MATICM coin, without separator
  ✅ MATICMF0 coin, without separator
  ✅ tBTCF0:USD pair
  ✅ tBTCF0USD pair, without separator
  ✅ tEUR:USD pair, with separator
  ✅ tMATIC:USD pair, without separator
  ✅ tXAUT:USD pair
  ✅ tXAUTUSD pair, without separator

✅ workers/loc.api/responder/test/responder.spec.js

Responder service
  ✅ handle error in body
  ✅ handle HTML error
  ✅ handle plain error status text
  ✅ handle plain error text in raw body