function shortRequire () {
    return {
        compare: function compare (actual) {
            var result = { pass: true },
                errors;

            errors = actual.split('\n')
                .map(checkLine)
                .filter(status => status.hasError)
                .map(error => `line ${error.line}:\t${error.message}`);
                
            result.pass = errors.length === 0;

            if (result.pass) {
                result.message = 'Expected source to require peer modules';
            }
            else {
                result.message = errors
                    .join('\n');
            }

            return result;
        }
    };
}
/**
 * Returns a Jasmine matcher whose compare method validates that each line
 * does not contain a call to require using an indirect path.
 */
Returns a Jasmine matcher whose compare method validates that each line
does not contain a call to require using an indirect path.
Returns a Jasmine matcher whose compare method validates that each line does not contain a call to require using an indirect path .
function shortRequire () {
    return {
        compare: function compare (actual) {
            var result = { pass: true },
                errors;
            errors = actual.split('\n')
                .map(checkLine)
                .filter(status => status.hasError)
                .map(error => `line ${error.line}:\t${error.message}`);
            result.pass = errors.length === 0;
            if (result.pass) {
                result.message = 'Expected source to require peer modules';
            }
            else {
                result.message = errors
                    .join('\n');
            }
            return result;
        }
    };
}
function shortRequire ( ) { return { compare : function compare ( actual ) { var result = { pass : true } , errors ; errors = actual . split ( '\n' ) . map ( checkLine ) . filter ( status => status . hasError ) . map ( error => ` ${ error . line } \t ${ error . message } ` ) ; result . pass = errors . length === 0 ; if ( result . pass ) { result . message = 'Expected source to require peer modules' ; } else { result . message = errors . join ( '\n' ) ; } return result ; } } ; }
Returns a Jasmine matcher whose compare method validates that each line
 does not contain a call to require using an indirect path.
Returns a Jasmine matcher whose compare method validates that each line does not contain a call to require using an indirect path .