prettier-playwright-msteams-report
Version:
A modified version of the Playwright MS Teams Messager
16 lines (15 loc) • 485 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNotificationTitle = void 0;
const _1 = require(".");
const getNotificationTitle = (statuses) => {
const outcome = (0, _1.getNotificationOutcome)(statuses);
if (outcome === "passed") {
return "Tests passed";
}
if (outcome === "flaky") {
return "Tests passed with flaky tests";
}
return "Tests failed";
};
exports.getNotificationTitle = getNotificationTitle;