test: verify the packaged Commonlib boundary

This commit is contained in:
vorotamoroz
2026-07-17 17:50:56 +00:00
parent f80137e364
commit 7b7801b029
12 changed files with 176 additions and 26 deletions
+4
View File
@@ -980,6 +980,10 @@ export function parseYaml(s: string) {
export function getLanguage() {
return "en";
}
/** The mock does not implement APIs gated by an Obsidian application version. */
export function requireApiVersion(_version: string): boolean {
return false;
}
export function setIcon(el: HTMLElement, icon: string) {}
export function arrayBufferToBase64(buffer: ArrayBuffer): string {
return btoa(String.fromCharCode(...new Uint8Array(buffer)));