diff --git a/test/mailRelay.test.ts b/test/mailRelay.test.ts index 0caeeee..19dd567 100644 --- a/test/mailRelay.test.ts +++ b/test/mailRelay.test.ts @@ -815,7 +815,8 @@ describe('review of 7d766b6: R-1 to R-7, R-11, and four mutations it found uncau await updateRelayStore(payload, (current) => ({ ...current, token: foreign })) const before = fake.requests.length expect((await sendThroughRelay(payload, options, { ...MESSAGE, subject: 'As myself' })).sent).toBe(true) - expect(fake.requests.slice(before).map((r) => r.path)).toEqual(['/v1/send', '/v1/enrol', '/v1/send']) + // (a status read follows: what was known about the service was forgotten with the token) + expect(fake.requests.slice(before).map((r) => r.path).slice(0, 3)).toEqual(['/v1/send', '/v1/enrol', '/v1/send']) expect(fake.outbox.at(-1)).toMatchObject({ host: HOST, subject: 'As myself' }) expect((await readRelayStore(payload)).token).not.toBe(foreign) // forgotten here, not revoked there