• Assert function to ensure that something expected to be a message object actually is. A message object should have a .method property that's a string, a .args property that's a capdata object, and optionally a .result property that, if present, must be a string.

    Parameters

    • message: any

      The object to be tested

    Returns asserts message is Message

    if, upon inspection, the parameter does not satisfy the above criteria.