Lint: lockedAnswer suite after the merge
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
1bc0ebca63
commit
8888a38c10
@@ -44,7 +44,7 @@ test('a locked staff account gets the wrong-password answer, REST and GraphQL',
|
||||
const gql = async (address: string, pass: string) => {
|
||||
const res = await anon.post('/api/graphql', { data: { query: `mutation { loginUser(email: ${JSON.stringify(address)}, password: ${JSON.stringify(pass)}) { token } }` } })
|
||||
const error = ((await res.json()) as { errors?: { extensions?: { name?: string }; message: string }[] }).errors?.[0]
|
||||
return { message: error?.message, name: error?.extensions?.name }
|
||||
return { name: error?.extensions?.name, message: error?.message }
|
||||
}
|
||||
expect(await gql(email, own)).toEqual(await gql(`nobody-${randomUUID().slice(0, 8)}@example.com`, 'x-wrong-password-1'))
|
||||
await anon.dispose()
|
||||
|
||||
Reference in New Issue
Block a user