fix exception type in test

This commit is contained in:
dakkar 2025-09-21 16:35:16 +01:00
parent 77852b8cce
commit 9fe850893b

View file

@ -236,7 +236,7 @@ describe('API', () => {
},
'homeTimeline',
() => { },
), (err: IncomingMessage) => {
), (err: { statusCode: string, reason: string }) => {
assert.strictEqual(err.statusCode, 4000);
assert.ok(err.reason?.startsWith('Failed to authenticate'));
return true;