PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@bitgo-forks/avalanchejs/src/fixtures/utils
Просмотр файла: makeList.spec.ts
import { concatBytes } from '../../utils/buffer';
import { address, addressBytes } from '../common';
import { bytesForInt } from './bytesFor';
import { makeList, makeListBytes } from './makeList';
describe('makeList', () => {
it('make lists', () => {
expect(makeList(address)()).toEqual([address(), address()]);
});
it('make lists bytes', () => {
expect(makeListBytes(addressBytes)()).toEqual(
concatBytes(bytesForInt(2), addressBytes(), addressBytes()),
);
});
});
Выполнить команду
Для локальной разработки. Не используйте в интернете!