prettier-playwright-msteams-report
Version:
A modified version of the Playwright MS Teams Messager
17 lines (16 loc) • 566 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNotificationBackground = void 0;
const _1 = require(".");
const constants_1 = require("../constants");
const getNotificationBackground = (statuses) => {
const outcome = (0, _1.getNotificationOutcome)(statuses);
if (outcome === "passed") {
return constants_1.Images.success;
}
if (outcome === "flaky") {
return constants_1.Images.flaky;
}
return constants_1.Images.failed;
};
exports.getNotificationBackground = getNotificationBackground;