The return value from all comparison functions.

interface Result {
    diff: string;
    match: boolean;
}

Properties

Properties

diff: string

Diff of formatted test object and expected pattern. Only shows properties which differ, not the entire object.

match: boolean

whether or not the objects are a satisfying match