fix graphQL tests

This commit is contained in:
Elliot DeNolf
2020-10-02 09:45:58 -04:00
parent 2b80c5fda6
commit efc6d0adf1

View File

@@ -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}` } });