MCPcopy Create free account
hub / github.com/ccxt/ccxt / testStringToBase64

Function testStringToBase64

js/src/test/base/test.stringToBase64.js:3–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import assert from 'assert';
2import ccxt from '../../../ccxt.js';
3function testStringToBase64() {
4 const exchange = new ccxt.Exchange({
5 'id': 'sampleexchange',
6 });
7 // todo: add single & double quotes in transpilable manner
8 assert(exchange.stringToBase64('hello world 123!@#$%^&*()"-+)S') === 'aGVsbG8gd29ybGQgMTIzIUAjJCVeJiooKSItKylT');
9}
10export default testStringToBase64;

Callers 1

baseTestsInitFunction · 0.70

Calls 2

stringToBase64Method · 0.95
assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…