UNPKG

prettier-playwright-msteams-report

Version:
16 lines (15 loc) 485 B
"use strict"; 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;