Skip to content

verifyBinary and line scrubber

Latest

Choose a tag to compare

@isidore isidore released this 23 Nov 02:55
· 4 commits to master since this release

Adds Approvals.verifyBinary and Scrubbers.removeLinesContaining. No behavior changes; approved file names are unchanged.

Added

  • Approvals.verifyBinary(byte[], String fileExtension[, Options]): approve raw bytes such as images or PDFs.
  • Scrubbers.removeLinesContaining(String): a scrubber that removes every line containing the given text.
  • ApprovalBinaryFileWriter constructors that take Options.

Deprecated

  • ApprovalBinaryFileWriter constructors that take String fileExtensionWithoutDot. Use the Options versions.

Upgrade guide: Upgrade from 32.1.0 to 32.2.0