Import Instagram archive to a Bluesky account
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update video post test to enable and improve mock data

- Uncomment and enable video post test case
- Update mock video post data to match current implementation
- Modify mocked prepareVideoUpload to return more realistic video metadata
- Adjust test to use 'buffer' instead of 'video_buffer' for consistency

+11 -3
+11 -3
tests/app.test.ts
··· 21 21 config: jest.fn(), 22 22 })); 23 23 jest.mock('../src/video', () => ({ 24 - prepareVideoUpload: jest.fn(), 24 + prepareVideoUpload: jest.fn().mockReturnValue({ 25 + ref: '', // This will be filled by the upload process with the CID 26 + mimeType: 'video/mp4', 27 + size: 1000, 28 + dimensions: { 29 + width: 640, 30 + height: 640 31 + } 32 + }), 25 33 createVideoEmbed: jest.fn(), 26 34 validateVideo: jest.fn(), 27 35 getVideoDimensions: jest.fn() ··· 220 228 ); 221 229 }); 222 230 223 - xtest('should handle video posts correctly', async () => { 231 + test('should handle video posts correctly', async () => { 224 232 const mockVideoPost = { 225 233 creation_timestamp: Date.now() / 1000, 226 234 title: 'Test Video Post', ··· 228 236 type: 'Video', 229 237 creation_timestamp: Date.now() / 1000, 230 238 media_url: 'test.mp4', 231 - video_buffer: Buffer.from('test') 239 + buffer: Buffer.from('test') 232 240 }] 233 241 }; 234 242