post-merge lint
This commit is contained in:
parent
d5b1763fe0
commit
93cabbf945
3 changed files with 1664 additions and 4853 deletions
|
|
@ -476,9 +476,9 @@ describe('Statuses store', () => {
|
|||
])
|
||||
.flat()
|
||||
|
||||
it.each(
|
||||
optimismInteractions,
|
||||
)('%s - optimism call', async (method, property, count) => {
|
||||
it.each(optimismInteractions)(
|
||||
'%s - optimism call',
|
||||
async (method, property, count) => {
|
||||
// Prepare our status
|
||||
const status = mockStatus()
|
||||
const negate = method.startsWith('un')
|
||||
|
|
@ -501,9 +501,12 @@ describe('Statuses store', () => {
|
|||
|
||||
const mockFetch = vi.fn()
|
||||
mockFetch.mockResolvedValueOnce(
|
||||
new Response(JSON.stringify(mockMastoAPIStatus({ text: 'Updated' })), {
|
||||
new Response(
|
||||
JSON.stringify(mockMastoAPIStatus({ text: 'Updated' })),
|
||||
{
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
}),
|
||||
},
|
||||
),
|
||||
)
|
||||
|
||||
expect(store.allStatuses.get('1')).to.have.property(property, negate)
|
||||
|
|
@ -523,11 +526,12 @@ describe('Statuses store', () => {
|
|||
'argument',
|
||||
)
|
||||
}
|
||||
})
|
||||
},
|
||||
)
|
||||
|
||||
it.each(
|
||||
optimismInteractions,
|
||||
)('%s - optimism fail', async (method, property, count) => {
|
||||
it.each(optimismInteractions)(
|
||||
'%s - optimism fail',
|
||||
async (method, property, count) => {
|
||||
// Prepare our status
|
||||
const status = mockStatus()
|
||||
const negate = method.startsWith('un')
|
||||
|
|
@ -569,7 +573,8 @@ describe('Statuses store', () => {
|
|||
'argument',
|
||||
)
|
||||
}
|
||||
})
|
||||
},
|
||||
)
|
||||
|
||||
it.each([
|
||||
['reactWithEmoji', 0],
|
||||
|
|
|
|||
|
|
@ -1180,11 +1180,9 @@ describe('Users store', () => {
|
|||
)
|
||||
})
|
||||
|
||||
it.each([
|
||||
'unmute',
|
||||
'unblock',
|
||||
'removeUserFromFollowers',
|
||||
])('%s', async (action) => {
|
||||
it.each(['unmute', 'unblock', 'removeUserFromFollowers'])(
|
||||
'%s',
|
||||
async (action) => {
|
||||
const mockFetch = vi.fn().mockResolvedValueOnce(
|
||||
new Response(JSON.stringify({ id: userId }), {
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
|
|
@ -1201,7 +1199,8 @@ describe('Users store', () => {
|
|||
USER_API[apiUrl](userId),
|
||||
DEFAULT_OPTIONS(),
|
||||
)
|
||||
})
|
||||
},
|
||||
)
|
||||
|
||||
describe.each(['mute', 'block'])('%s', (action) => {
|
||||
it('normal', async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue