- Timestamp:
- 08/08/2026 04:50:48 AM (5 weeks ago)
- Branches:
- main
- Children:
- fb22f78
- Parents:
- bdcb3a3
- git-author:
- Robin <roboburr@…> (08/08/2026 04:47:48 AM)
- git-committer:
- Robin <roboburr@…> (08/08/2026 04:50:48 AM)
- Location:
- test
- Files:
-
- 1 added
- 2 edited
-
ap-playlist-discovery.test.js (modified) (1 diff)
-
ap-playlist.test.js (modified) (1 diff)
-
ap-tracks.test.js (added)
Legend:
- Unmodified
- Added
- Removed
-
test/ap-playlist-discovery.test.js
rbdcb3a3 r39a9d21 55 55 test('de actor wijst via streams naar de playlist-lijst', async () => { 56 56 const { body } = await getJson('/ap/users/band'); 57 assert.deepEqual(body.streams, ['https://test.example/ap/users/band/playlists']); 57 // Sinds stap 3 staat de TRACK-collectie er ook in, en vooraan: die is de 58 // kanonieke plek voor onze muziek, de playlists zijn een keuze daaruit. 59 assert.deepEqual(body.streams, [ 60 'https://test.example/ap/users/band/tracks', 61 'https://test.example/ap/users/band/playlists', 62 ]); 58 63 }); 59 64 -
test/ap-playlist.test.js
rbdcb3a3 r39a9d21 79 79 for (const a of body.orderedItems) { 80 80 assert.equal(a.type, 'Audio'); 81 assert.match(a.url, /^https:\/\/test\.example\/audio\/stream\//); 82 assert.equal(a.mediaType, 'audio/mpeg'); 81 // Sinds stap 3: een eigen id, en url als Link-array -- de mediaType hoort 82 // bij de link, niet bij het object. 83 assert.match(a.id, /^https:\/\/test\.example\/ap\/users\/band\/tracks\//); 84 assert.ok(Array.isArray(a.url), 'url is een Link-array'); 85 assert.match(a.url[0].href, /^https:\/\/test\.example\/audio\/stream\//); 86 assert.equal(a.url[0].mediaType, 'audio/mpeg'); 83 87 } 84 88 assert.equal(body.orderedItems[0].duration, 'PT215S');
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)