Changeset 8b07c12 in Klonkt for test/c2s-block.test.js
- Timestamp:
- 07/22/2026 12:26:08 AM (7 weeks ago)
- Branches:
- main
- Children:
- dc4aa08
- Parents:
- 4c70ecb
- File:
-
- 1 edited
-
test/c2s-block.test.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
test/c2s-block.test.js
r4c70ecb r8b07c12 43 43 assert.equal(out.status, 400); 44 44 }); 45 46 test('the actor advertises the blocked collection (AP 5.6)', () => { 47 site.primary_slug = 'me'; 48 const actor = AP.buildActor('https://test.example', site); 49 assert.equal(actor.blocked, 'https://test.example/ap/users/me/blocked'); 50 }); 51 52 test('actor-kind blocks form the collection items; domain blocks stay out', async () => { 53 await AP.ingestOutboxActivity(site, user, { type: 'Block', object: BULLY }); 54 await AP.blockTarget(site, 'nare-server.example'); // domain block 55 const items = AP.listBlocks('me').filter((b) => b.kind === 'actor').map((b) => b.target); 56 assert.deepEqual(items, [BULLY]); 57 });
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)