UNPKG

e2ed

Version:

E2E testing framework over Playwright

17 lines (16 loc) 552 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPrintedTestsCount = void 0; /** * Get printed message about some tests count. * @internal */ const getPrintedTestsCount = (testsCount, failed = false) => { const failedString = failed ? 'failed ' : ''; if (testsCount === 0) { return `0 ${failedString}tests (no tests)`; } const wordTest = testsCount === 1 ? 'test' : 'tests'; return `${testsCount} ${failedString}${wordTest}`; }; exports.getPrintedTestsCount = getPrintedTestsCount;