fix exception type in test
This commit is contained in:
parent
77852b8cce
commit
9fe850893b
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ describe('API', () => {
|
||||||
},
|
},
|
||||||
'homeTimeline',
|
'homeTimeline',
|
||||||
() => { },
|
() => { },
|
||||||
), (err: IncomingMessage) => {
|
), (err: { statusCode: string, reason: string }) => {
|
||||||
assert.strictEqual(err.statusCode, 4000);
|
assert.strictEqual(err.statusCode, 4000);
|
||||||
assert.ok(err.reason?.startsWith('Failed to authenticate'));
|
assert.ok(err.reason?.startsWith('Failed to authenticate'));
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue