testBadInput_nullNotAllowed() {
    const hasher = new Sha512();
    assertThrows(
        'Null input not allowed',
        /** @suppress {checkTypes} array like isn't a supported type */
        () => {
          hasher.update({});
        });
  }
Check that the code throws an error for bad input