/* lib/terminal/test/application/testComplete - Final messaging for a completed test type. */ import common from "../../../common/common.js";
import log from "../../utilities/log.js";
import vars from "../../utilities/vars.js";
const testComplete = function terminal_test_application_testComplete(complete) {
    log([
        "",
        ""
    ]);
    if (complete.failures > 0) {
        const plural = complete.failures === 1 ? "" : "s";
        complete.callback(`${common.capitalize(complete.testType)} Test`, [
            `${vars.text.angry}Failed ${complete.failures} ${complete.testType + vars.text.none} test${plural} out of ${complete.total} total tests.`
        ], true);
    } else {
        complete.callback(`${common.capitalize(complete.testType)} Test`, [
            `${vars.text.green}Successfully completed all ${vars.text.cyan + vars.text.bold + String(complete.total) + vars.text.none + vars.text.green} ${complete.testType} tests.${vars.text.none}`
        ], false);
    }
};
export default testComplete;
