function createColor(diffType) {
  switch (diffType) {
    case DiffType.added:
      return (s) => green(bold(s));
    case DiffType.removed:
      return (s) => red(bold(s));
    default:
      return white;
  }
}
/**
 * Colors the output of assertion diffs
 * @param diffType Difference type, either added or removed
 */
Colors the output of assertion diffs
@param diffType Difference type, either added or removed
Colors the output of assertion diffs @param diffType Difference type either added or removed
function createColor(diffType) {
  switch (diffType) {
    case DiffType.added:
      return (s) => green(bold(s));
    case DiffType.removed:
      return (s) => red(bold(s));
    default:
      return white;
  }
}
function createColor ( diffType ) { switch ( diffType ) { case DiffType . added : return ( s ) => green ( bold ( s ) ) ; case DiffType . removed : return ( s ) => red ( bold ( s ) ) ; default : return white ; } }
Colors the output of assertion diffs
 @param diffType Difference type, either added or removed
Colors the output of assertion diffs @param diffType Difference type either added or removed