Changeset 39a9d21 in Klonkt for test/ap-playlist.test.js
- 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)
- File:
-
- 1 edited
-
test/ap-playlist.test.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
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)