style: lint fixes

This commit is contained in:
Peter Steinberger
2026-01-03 15:51:49 +01:00
parent dac4ba6456
commit 3db3aca0a0
3 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -388,7 +388,7 @@ export function withTimelines<TBase extends AbstractConstructor<TwitterClientBas
queryId, queryId,
pageCount, pageCount,
hasCursor: Boolean(pageCursor), hasCursor: Boolean(pageCursor),
includeCount: Object.prototype.hasOwnProperty.call(variables, 'count'), includeCount: Object.hasOwn(variables, 'count'),
}); });
const response = await this.fetchWithRetry(url, { const response = await this.fetchWithRetry(url, {
method: 'GET', method: 'GET',
+3 -5
View File
@@ -17,11 +17,9 @@ describe('bookmarks command', () => {
} as unknown as CliContext; } as unknown as CliContext;
registerBookmarksCommand(program, ctx); registerBookmarksCommand(program, ctx);
const exitSpy = vi const exitSpy = vi.spyOn(process, 'exit').mockImplementation(((code?: number) => {
.spyOn(process, 'exit') throw new Error(`exit ${code}`);
.mockImplementation(((code?: number) => { }) as never);
throw new Error(`exit ${code}`);
}) as never);
const errorSpy = vi.spyOn(console, 'error').mockImplementation(() => undefined); const errorSpy = vi.spyOn(console, 'error').mockImplementation(() => undefined);
try { try {
@@ -1,6 +1,6 @@
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { TwitterClient } from '../src/lib/twitter-client.js'; import { TwitterClient } from '../src/lib/twitter-client.js';
import { validCookies, type TwitterClientPrivate } from './twitter-client-fixtures.js'; import { type TwitterClientPrivate, validCookies } from './twitter-client-fixtures.js';
const originalFetch = global.fetch; const originalFetch = global.fetch;