style: format engagement test file

Fix biome formatting for mock chain.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
This commit is contained in:
the-vampiire
2026-06-24 18:44:38 +09:00
committed by yuta
co-authored by Claude Opus 4.5
parent da013664c8
commit 81f1229660
+5 -7
View File
@@ -69,13 +69,11 @@ describe('TwitterClient engagement', () => {
}); });
it('retries on 404 with refreshed query IDs', async () => { it('retries on 404 with refreshed query IDs', async () => {
mockFetch mockFetch.mockResolvedValueOnce({ ok: false, status: 404, text: async () => 'Not found' }).mockResolvedValueOnce({
.mockResolvedValueOnce({ ok: false, status: 404, text: async () => 'Not found' }) ok: true,
.mockResolvedValueOnce({ status: 200,
ok: true, json: async () => ({ data: { favorite_tweet: 'Done' } }),
status: 200, });
json: async () => ({ data: { favorite_tweet: 'Done' } }),
});
const client = new TwitterClient({ cookies: validCookies }); const client = new TwitterClient({ cookies: validCookies });
const result = await client.like('1234567890'); const result = await client.like('1234567890');