Beta 7 with some repo names changed.

This commit is contained in:
Luis Fernando Molina committed 2020-11-15 13:05:19 +01:00
1 parent 0f7b40cca7
commit 963c19493a
3408 files changed
+462217 -15516

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
'use strict'
// ----------------------------------------------------------------------------
const log = require ('ololog')
, ansi = require ('ansicolor').nice
, chai = require ('chai')
, ccxt = require ('../../../ccxt.js')
, expect = chai.expect
, assert = chai.assert
/* ------------------------------------------------------------------------ */
module.exports = async (exchange, symbol) => {
if (!exchange.has.createOrder) {
log ('createOrder not supported -> test skipped')
return
}
let id = 1
try {
await exchange.cancelOrder (id, symbol)
log ('test failed')
assert.fail ()
} catch (e) {
if (e instanceof ccxt.OrderNotFound) {
log ('OrderNotFound thrown as expected')
} else {
log ('OrderNotFound test failed')
throw e
}
}
}