fix graphQL tests
This commit is contained in:
@@ -21,12 +21,14 @@ describe('GrahpQL Resolvers', () => {
|
||||
loginAdmin(
|
||||
email: "${email}",
|
||||
password: "${password}"
|
||||
)
|
||||
) {
|
||||
token
|
||||
}
|
||||
}`;
|
||||
|
||||
const response = await request(url, query);
|
||||
|
||||
token = response.loginAdmin;
|
||||
token = response.loginAdmin.token;
|
||||
|
||||
client = new GraphQLClient(url, { headers: { Authorization: `JWT ${token}` } });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user