tests/rest/v1/blocks.spec.ts
describe("blocks", () => {
it("lists blocks", async () => {
await using alice = await sessions.acquire();
await using bob = await sessions.acquire();
try {
await alice.rest.v1.accounts.$select(bob.id).block();
const blocks = await alice.rest.v1.blocks.list();
expect(blocks).toContainId(bob.id);
} finally {
await alice.rest.v1.accounts.$select(bob.id).unblock();
}
});
});