console-fail-test
Version:
Gently fails test runs if the console was used during them. 📢
12 lines • 368 B
JavaScript
const formatComplaintLineArg = (arg) => {
try {
return JSON.stringify(arg) || JSON.stringify(`${arg}`);
} catch {
return `A recursive object with keys: ${Object.keys(arg).join(", ")}`;
}
};
const formatComplaintCall = (call) => call.map(formatComplaintLineArg).join(", ");
export {
formatComplaintCall
};
//# sourceMappingURL=formatComplaintCall.js.map