This repository was archived by the owner on Apr 17, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathindex.test.ts
More file actions
142 lines (109 loc) · 4.16 KB
/
Copy pathindex.test.ts
File metadata and controls
142 lines (109 loc) · 4.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
import { describe, it, expect } from 'bun:test';
import * as api from './index';
describe('fileExists', () => {
it('should return true when checking if package.json exists', () => {
const result = api.fileExists('./package.json');
expect(result).toBe(true);
});
it('should return false for non-existent file', () => {
const result = api.fileExists('./nonexistent-file-12345.json');
expect(result).toBe(false);
});
});
describe('Constant exports', () => {
it('should export SESSION_FILE_PATH constant', () => {
expect(api.SESSION_FILE_PATH).toBe('./session.json');
});
});
describe('Function exports', () => {
it('should export getTimeline function', () => {
expect(typeof api.getTimeline).toBe('function');
});
it('should export resumeSession function', () => {
expect(typeof api.resumeSession).toBe('function');
});
it('should export fileExists function', () => {
expect(typeof api.fileExists).toBe('function');
});
it('should export login function', () => {
expect(typeof api.login).toBe('function');
});
it('should export getProfile function', () => {
expect(typeof api.getProfile).toBe('function');
});
it('should export getSessionData function', () => {
expect(typeof api.getSessionData).toBe('function');
});
it('should export getAuthorFeed function', () => {
expect(typeof api.getAuthorFeed).toBe('function');
});
it('should export createPost function', () => {
expect(typeof api.createPost).toBe('function');
});
it('should export likePost function', () => {
expect(typeof api.likePost).toBe('function');
});
it('should export getFollowers function', () => {
expect(typeof api.getFollowers).toBe('function');
});
it('should export getFollows function', () => {
expect(typeof api.getFollows).toBe('function');
});
it('should export repost function', () => {
expect(typeof api.repost).toBe('function');
});
it('should export unfollow function', () => {
expect(typeof api.unfollow).toBe('function');
});
it('should export muteUser function', () => {
expect(typeof api.muteUser).toBe('function');
});
it('should export unmuteUser function', () => {
expect(typeof api.unmuteUser).toBe('function');
});
it('should export follow function', () => {
expect(typeof api.follow).toBe('function');
});
it('should export deletePost function', () => {
expect(typeof api.deletePost).toBe('function');
});
it('should export deleteLike function', () => {
expect(typeof api.deleteLike).toBe('function');
});
it('should export deleteRepost function', () => {
expect(typeof api.deleteRepost).toBe('function');
});
it('should export getPost function', () => {
expect(typeof api.getPost).toBe('function');
});
it('should export uploadBlob function', () => {
expect(typeof api.uploadBlob).toBe('function');
});
it('should export getPosts function', () => {
expect(typeof api.getPosts).toBe('function');
});
it('should export getLikes function', () => {
expect(typeof api.getLikes).toBe('function');
});
it('should export getRepostedBy function', () => {
expect(typeof api.getRepostedBy).toBe('function');
});
it('should export getSuggestions function', () => {
expect(typeof api.getSuggestions).toBe('function');
});
it('should export listNotifications function', () => {
expect(typeof api.listNotifications).toBe('function');
});
it('should export countUnreadNotifications function', () => {
expect(typeof api.countUnreadNotifications).toBe('function');
});
it('should export updateSeenNotifications function', () => {
expect(typeof api.updateSeenNotifications).toBe('function');
});
it('should export resolveHandle function', () => {
expect(typeof api.resolveHandle).toBe('function');
});
it('should export updateHandle function', () => {
expect(typeof api.updateHandle).toBe('function');
});
});