Test was failing as I was not returning an error.

This commit is contained in:
gaba
2017-05-08 16:05:40 -07:00
parent 743a96cd21
commit 96cd5197e3
5 changed files with 40 additions and 14 deletions
@@ -32,7 +32,6 @@ describe('graph.mutations.ignoreUser', () => {
// @TODO (bengo) - test a user can't ignore themselves
it('users can ignoreUser', async () => {
UsersService.findLocalUser('usernameB@example.com');
const user = await UsersService.createLocalUser('usernameA@example.com', 'password', 'usernameA');
const userToIgnore = await UsersService.createLocalUser('usernameB@example.com', 'password', 'usernameB');
const context = new Context({user});