test: cover share authentication and copy behavior

This commit is contained in:
2026-08-16 01:20:59 +07:00 Unverified
parent f32171a576
commit 649eac1776
5 changed files with 86 additions and 8 deletions
+5
View File
@@ -0,0 +1,5 @@
export type ShareContentLookup = (id: string) => { textContent: string | null } | null;
export function getShareContentForClipboard(lookup: ShareContentLookup) {
return lookup("share-content")?.textContent ?? null;
}