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