DialogTestHarness
A test fixture: a DialogContext answered by its own ScriptedDialogDriver.
Import:
import type { DialogTestHarness } from '@mnaoumov/obsidian-lib/modals/scripted-dialog-driver';Signature:
export interface DialogTestHarnessProperties
| Property | Type | Description |
|---|---|---|
| assertDone | () => void | Throws when a scripted step was never used. |
| dialogContext | DialogContext | The context the code under test shows its dialogs through. |
| driver | ScriptedDialogDriver | The driver holding the script and the transcript. |
Links to this page: