test: cover bookmark folder parsing and count fallback

This commit is contained in:
Peter Steinberger
2026-01-01 09:13:41 +01:00
parent ee9c89018e
commit e541d904f2
2 changed files with 80 additions and 0 deletions
+5
View File
@@ -50,5 +50,10 @@ describe('CLI utilities', () => {
it('should return null for invalid values', () => {
expect(extractBookmarkFolderId('not-an-id')).toBeNull();
});
it('should return null for folder_id query URLs', () => {
const url = 'https://x.com/i/bookmarks?folder_id=1976792203235119344';
expect(extractBookmarkFolderId(url)).toBeNull();
});
});
});