UNPKG

@lit-protocol/e2e

Version:

Lit Protocol E2E testing package for running comprehensive integration tests

11 lines 474 B
// Helper function for aligned console output export const printAligned = (entries, minPadding = 2) => { // Find the maximum label length const maxLabelLength = Math.max(...entries.map((entry) => entry.label.length)); const paddingWidth = maxLabelLength + minPadding; // Print each entry with consistent alignment entries.forEach(({ label, value }) => { console.log(label.padEnd(paddingWidth), value); }); }; //# sourceMappingURL=utils.js.map