()
| 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', |
| 15 | }); |
| 16 | const input = 'decode-test'; |
| 17 | const encoded = exchange.encode(input); |
| 18 | const decoded = exchange.decode(encoded); |
| 19 | assert(decoded === input, 'decoded should be equal to input, got ' + decoded + ' instead of ' + input); |
| 20 | } |
| 21 | function testEncodeDecode() { |
| 22 | testEncode(); |
| 23 | testDecode(); |
no test coverage detected
searching dependent graphs…