Changeset 15f1cb5 in Klonkt for test/c2s-compose.test.js
- Timestamp:
- 07/30/2026 08:09:51 AM (6 weeks ago)
- Branches:
- main
- Children:
- 2a10445
- Parents:
- 79f00c5
- File:
-
- 1 edited
-
test/c2s-compose.test.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
test/c2s-compose.test.js
r79f00c5 r15f1cb5 85 85 assert.equal(vid.icon && vid.icon.url, 'https://test.example/media/reply-media/film.mp4.poster.jpg', 86 86 'the poster federates as the attachment icon'); 87 // The web tile plays the video as its own thumbnail (Robins aanwijzing): 88 // the first video becomes the cover video, with NO cover image beside it, 89 // because the tile's image branch would win and freeze the tile. 90 assert.equal(post.cover_video_url, '/media/reply-media/film.mp4'); 91 assert.equal(post.cover_image_url, null); 92 assert.equal((note.attachment || []).filter((a) => a.url.endsWith('film.mp4')).length, 1, 93 'cover video + attachment dedupe to the one entry that knows its poster'); 87 94 } finally { 88 95 if (prev === undefined) delete process.env.MEDIA_PATH; else process.env.MEDIA_PATH = prev; … … 115 122 }); 116 123 assert.equal(r.status, 201, 'a picture can be the whole message'); 124 const post = db.prepare('SELECT * FROM posts WHERE id = ?').get(r.id); 125 assert.equal(post.cover_image_url, '/media/reply-media/alleen.jpg', 126 'a photo post fronts its photo instead of the (untitled) gradient'); 117 127 });
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)