addIcon
Adds an icon to the icon library. The mock stores the SVG content in an in-memory registry shared with getIcon, getIconIds, removeIcon and setIcon.
Import:
import { addIcon } from 'obsidian-test-mocks/obsidian';Signature:
function addIcon(iconId: string, svgContent: string): voidParameters:
| Parameter | Type | Description |
|---|---|---|
iconId |
string | The icon id. |
svgContent |
string | The inner content of the SVG. |
Returns: void