chore: fix lint issues
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { TwitterClient } from '../src/lib/twitter-client.js';
|
||||
import type { TwitterClient } from '../src/lib/twitter-client.js';
|
||||
|
||||
export const validCookies = {
|
||||
authToken: 'test_auth_token',
|
||||
|
||||
@@ -172,9 +172,7 @@ describe('TwitterClient getTweet', () => {
|
||||
const result = await client.getTweet('article123');
|
||||
|
||||
expect(result.success).toBe(true);
|
||||
expect(result.tweet?.text).toBe(
|
||||
'2025 LLM Year in Review\n\nIntro paragraph of the article.\n\nSecond paragraph.',
|
||||
);
|
||||
expect(result.tweet?.text).toBe('2025 LLM Year in Review\n\nIntro paragraph of the article.\n\nSecond paragraph.');
|
||||
});
|
||||
|
||||
it('should fall back to user article timeline for plain text', async () => {
|
||||
|
||||
@@ -551,9 +551,7 @@ describe('TwitterClient bookmark folders', () => {
|
||||
expect(result.success).toBe(true);
|
||||
expect(mockFetch).toHaveBeenCalledTimes(2);
|
||||
|
||||
const firstVars = JSON.parse(
|
||||
new URL(mockFetch.mock.calls[0][0] as string).searchParams.get('variables') as string,
|
||||
);
|
||||
const firstVars = JSON.parse(new URL(mockFetch.mock.calls[0][0] as string).searchParams.get('variables') as string);
|
||||
const secondVars = JSON.parse(
|
||||
new URL(mockFetch.mock.calls[1][0] as string).searchParams.get('variables') as string,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user