Crypto Testing
    Preparing search index...

    Function expectValidBase64

    • Assert that value is a valid Base64-encoded string.

      Parameters

      • value: string

        The string to validate.

      Returns void

      import { expectValidBase64 } from "@sebastienrousseau/crypto-testing";

      expectValidBase64("SGVsbG8="); // passes

      If the value is not valid Base64.