mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Refactor test to be less confusing
This commit is contained in:
parent
918bd863ed
commit
47e9e52a84
@ -7,10 +7,12 @@ describe('authorization', () => {
|
||||
beforeEach(async () => {
|
||||
await create('user', {
|
||||
email: 'owner@example.org',
|
||||
name: 'Owner',
|
||||
password: 'iamtheowner'
|
||||
})
|
||||
await create('user', {
|
||||
email: 'someone@example.org',
|
||||
name: 'Someone else',
|
||||
password: 'else'
|
||||
})
|
||||
})
|
||||
@ -24,7 +26,7 @@ describe('authorization', () => {
|
||||
const action = async (headers) => {
|
||||
const graphQLClient = new GraphQLClient(host, { headers })
|
||||
return graphQLClient.request(`{
|
||||
User(email: "owner@example.org") {
|
||||
User(name: "Owner") {
|
||||
email
|
||||
}
|
||||
}`)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user