style: lint fixes
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user