Skip to main content

Base64Encoded

Transformation matcher that matches a base64 encoded version of the given string or string matcher.

WARNING: Since many strings are accidentally decodable as base64, this matcher is best combined with a more restrictive string matcher (eg StringifiedJson).

import { matchers } from '@contract-case/case-definition-dsl'

new matchers.strings.Base64Encoded(child: any)

Parameters

NameTypeDescription
childanyThe string or string matcher that would match the decoded string.