()
| 1 | import assert from 'assert'; |
| 2 | import ccxt from '../../../ccxt.js'; |
| 3 | function testEncode() { |
| 4 | const exchange = new ccxt.Exchange({ |
| 5 | 'id': 'sampleexchange', |
| 6 | }); |
| 7 | const input = 'encode-test'; |
| 8 | const encoded = exchange.encode(input); |
| 9 | const decoded = exchange.decode(encoded); |
| 10 | assert(decoded === input, 'decoded should be equal to input, got ' + decoded + ' instead of ' + input); |
| 11 | } |
| 12 | function testDecode() { |
| 13 | const exchange = new ccxt.Exchange({ |
| 14 | 'id': 'sampleexchange', |
no test coverage detected
searching dependent graphs…