coreErrorsDiffFormatterOn this pageDiffFormatter Formats text representing expected, received, and unchanged lines of a diff produced by the ErrorFactory, so that they can be presented to a developer in a visually distinctive way.Implemented byAnsiDiffFormatterNoOpDiffFormatterIndex MethodsexpectedreceivedunchangedMethods expectedexpected(line: string): stringParametersline: stringReturns stringreceivedreceived(line: string): stringParametersline: stringReturns stringunchangedunchanged(line: string): stringParametersline: stringReturns string
Formats text representing expected, received, and unchanged lines of a diff produced by the ErrorFactory, so that they can be presented to a developer in a visually distinctive way.