e2ed
Version:
E2E testing framework over Playwright
10 lines (9 loc) • 413 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMessageWithBackgroundColor = void 0;
/**
* Get message with background color for printing in the console.
* @internal
*/
const getMessageWithBackgroundColor = (message, backgroundColor) => `\x1B[${backgroundColor}m\x1B[30m${message}\x1B[39m\x1B[49m`;
exports.getMessageWithBackgroundColor = getMessageWithBackgroundColor;