creevey
Version:
Cross-browser screenshot testing tool for Storybook with fancy UI Runner
27 lines • 708 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isInternetExplorer = void 0;
exports.getEmojiByTestStatus = getEmojiByTestStatus;
function getEmojiByTestStatus(status, skip = false) {
switch (status) {
case 'failed': {
return '❌';
}
case 'success': {
return '✔';
}
case 'running': {
return '🟡';
}
case 'pending': {
return '🕗';
}
default: {
if (skip)
return '⏸';
return '';
}
}
}
exports.isInternetExplorer = navigator.userAgent.includes('Trident/');
//# sourceMappingURL=utils.js.map