Expectation
One compact label/value grid for what a check expected and what it got — shared by test failures (matcher, expected, actual, location) and CEL assertions (expression, variables, expected, actual).
Import
Section titled “Import”import { Expectation } from "@flanksource/clicky-ui/data";No dedicated Storybook demo is available for this component yet.
The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.
| Prop | Type | Default | Description |
|---|---|---|---|
actual |
unknown |
— | — |
check |
string |
— | What decided the verdict: a matcher name (`Equal`) or a CEL expression. |
checkLabel |
string |
matcher |
Label for `check`; defaults to "matcher". |
className |
string |
— | — |
expected |
unknown |
— | — |
location |
string |
— | — |
vars |
Record<string, unknown> |
— | Variables the check saw (CEL `cel_vars`). |