@redocly/respect-core
Version:
API testing framework core
8 lines • 415 B
JavaScript
import { bold } from 'colorette';
export function errorMessageMatcher(hint, // assertion returned from call to matcherHint
generic, // condition which correct value must fulfill
specific // incorrect value returned from call to printWithType
) {
return `${hint}\n\n${bold('Matcher error')}: ${generic}${typeof specific === 'string' ? `\n\n${specific}` : ''}`;
}
//# sourceMappingURL=error-message-matcher.js.map