output() {
        const testsRun = this.failures.length + this.successes.length;
        if (this.failures.length === 0) {
            gulp_util_1.default.log("Translation tests complete:", gulp_util_1.default.colors.green(`Success (${testsRun} checks run)`));
        }
        else {
            gulp_util_1.default.log("Translation tests complete:", gulp_util_1.default.colors.red(`Failed (${testsRun} checks run)`));
            const failureGroups = lodash_1.default.groupBy(this.failures, (failure) => failure[1]);
            lodash_1.default.forOwn(failureGroups, (failures, file) => {
                gulp_util_1.default.log(gulp_util_1.default.colors.red(`${file}:`));
                failures.map((failure) => {
                    return gulp_util_1.default.log(failure[0]);
                });
            });
            throw new Error(messages_1.default.translationsFailed());
        }
        this.successes = this.failures = [];
    }
/**
     * Builds string output for translation tests
     * depending on successes and failures.
     */
Builds string output for translation tests
depending on successes and failures.
Builds string output for translation tests depending on successes and failures .
output() {
        const testsRun = this.failures.length + this.successes.length;
        if (this.failures.length === 0) {
            gulp_util_1.default.log("Translation tests complete:", gulp_util_1.default.colors.green(`Success (${testsRun} checks run)`));
        }
        else {
            gulp_util_1.default.log("Translation tests complete:", gulp_util_1.default.colors.red(`Failed (${testsRun} checks run)`));
            const failureGroups = lodash_1.default.groupBy(this.failures, (failure) => failure[1]);
            lodash_1.default.forOwn(failureGroups, (failures, file) => {
                gulp_util_1.default.log(gulp_util_1.default.colors.red(`${file}:`));
                failures.map((failure) => {
                    return gulp_util_1.default.log(failure[0]);
                });
            });
            throw new Error(messages_1.default.translationsFailed());
        }
        this.successes = this.failures = [];
    }
output ( ) { const testsRun = this . failures . length + this . successes . length ; if ( this . failures . length === 0 ) { gulp_util_1 . default . log ( "Translation tests complete:" , gulp_util_1 . default . colors . green ( ` ${ testsRun } ` ) ) ; } else { gulp_util_1 . default . log ( "Translation tests complete:" , gulp_util_1 . default . colors . red ( ` ${ testsRun } ` ) ) ; const failureGroups = lodash_1 . default . groupBy ( this . failures , ( failure ) => failure [ 1 ] ) ; lodash_1 . default . forOwn ( failureGroups , ( failures , file ) => { gulp_util_1 . default . log ( gulp_util_1 . default . colors . red ( ` ${ file } ` ) ) ; failures . map ( ( failure ) => { return gulp_util_1 . default . log ( failure [ 0 ] ) ; } ) ; } ) ; throw new Error ( messages_1 . default . translationsFailed ( ) ) ; } this . successes = this . failures = [ ] ; }
Builds string output for translation tests
 depending on successes and failures.
Builds string output for translation tests depending on successes and failures .