Skip to content

assertObsidianThemeUnchanged

Throws when the body has left the theme applyObsidianTheme applied.

Nothing is checked when no theme was applied through it, since there is then no expectation to hold the frame to.

Import:

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

Signature:

function assertObsidianThemeUnchanged(params: AssertObsidianThemeUnchangedParams): Promise<void>

Parameters:

Parameter Type Description
params AssertObsidianThemeUnchangedParams What is being refused, and transport / vault overrides.

Returns: Promise<void> — A Promise that resolves when the theme still holds, or none was applied.


Links to this page: