post-merge lint

This commit is contained in:
Henry Jameson 2026-09-04 01:06:54 +03:00
commit 93cabbf945
3 changed files with 1664 additions and 4853 deletions

View file

@ -476,9 +476,9 @@ describe('Statuses store', () => {
]) ])
.flat() .flat()
it.each( it.each(optimismInteractions)(
optimismInteractions, '%s - optimism call',
)('%s - optimism call', async (method, property, count) => { async (method, property, count) => {
// Prepare our status // Prepare our status
const status = mockStatus() const status = mockStatus()
const negate = method.startsWith('un') const negate = method.startsWith('un')
@ -501,9 +501,12 @@ describe('Statuses store', () => {
const mockFetch = vi.fn() const mockFetch = vi.fn()
mockFetch.mockResolvedValueOnce( mockFetch.mockResolvedValueOnce(
new Response(JSON.stringify(mockMastoAPIStatus({ text: 'Updated' })), { new Response(
JSON.stringify(mockMastoAPIStatus({ text: 'Updated' })),
{
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
}), },
),
) )
expect(store.allStatuses.get('1')).to.have.property(property, negate) expect(store.allStatuses.get('1')).to.have.property(property, negate)
@ -523,11 +526,12 @@ describe('Statuses store', () => {
'argument', 'argument',
) )
} }
}) },
)
it.each( it.each(optimismInteractions)(
optimismInteractions, '%s - optimism fail',
)('%s - optimism fail', async (method, property, count) => { async (method, property, count) => {
// Prepare our status // Prepare our status
const status = mockStatus() const status = mockStatus()
const negate = method.startsWith('un') const negate = method.startsWith('un')
@ -569,7 +573,8 @@ describe('Statuses store', () => {
'argument', 'argument',
) )
} }
}) },
)
it.each([ it.each([
['reactWithEmoji', 0], ['reactWithEmoji', 0],

View file

@ -1180,11 +1180,9 @@ describe('Users store', () => {
) )
}) })
it.each([ it.each(['unmute', 'unblock', 'removeUserFromFollowers'])(
'unmute', '%s',
'unblock', async (action) => {
'removeUserFromFollowers',
])('%s', async (action) => {
const mockFetch = vi.fn().mockResolvedValueOnce( const mockFetch = vi.fn().mockResolvedValueOnce(
new Response(JSON.stringify({ id: userId }), { new Response(JSON.stringify({ id: userId }), {
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
@ -1201,7 +1199,8 @@ describe('Users store', () => {
USER_API[apiUrl](userId), USER_API[apiUrl](userId),
DEFAULT_OPTIONS(), DEFAULT_OPTIONS(),
) )
}) },
)
describe.each(['mute', 'block'])('%s', (action) => { describe.each(['mute', 'block'])('%s', (action) => {
it('normal', async () => { it('normal', async () => {

6305
yarn.lock

File diff suppressed because it is too large Load diff