Skip to content

buildStatusBarBandFailureMessage

Builds the message a band that is not clear is refused with.

Separate from the throwing so it can be asserted on directly: what makes this failure actionable is the measurement, not the wording around it.

Import:

import { buildStatusBarBandFailureMessage } from 'obsidian-integration-testing';

Signature:

function buildStatusBarBandFailureMessage(params: BuildStatusBarBandFailureMessageParams): string

Parameters:

Parameter Type Description
params BuildStatusBarBandFailureMessageParams The verdict and the geometry it was read with.

Returns: string — The message, ready to throw.


Links to this page: