UNPKG

prettier-playwright-msteams-report

Version:
37 lines (36 loc) 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _1 = require("."); const constants_1 = require("../constants"); describe("getNotificationBackground", () => { it("Should return 'success' background", () => { const statuses = { passed: 1, failed: 0, flaky: 0, skipped: 0, }; const title = (0, _1.getNotificationBackground)(statuses); expect(title).toBe(constants_1.Images.success); }); it("Should return 'flaky' background", () => { const statuses = { passed: 1, failed: 0, flaky: 1, skipped: 0, }; const title = (0, _1.getNotificationBackground)(statuses); expect(title).toBe(constants_1.Images.flaky); }); it("Should return 'failed' background", () => { const statuses = { passed: 1, failed: 1, flaky: 1, skipped: 0, }; const title = (0, _1.getNotificationBackground)(statuses); expect(title).toBe(constants_1.Images.failed); }); });