Skip to content

Commit

Permalink
update tests (cont)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Oct 5, 2022
1 parent 99aa16c commit 73e8fe0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ describe('non-matching filter', () => {
}`,
});
expect(data).toEqual({ createUser: null });
const message = `Access denied: You cannot 'connect' that '{\"id\":\"${FAKE_ID}\"}'. it may not exist`;
const message = `Access denied: You cannot 'connect' that User - it may not exist`;
expectSingleRelationshipError(errors, 'createUser', 'User.notes', message);
})
);
Expand Down Expand Up @@ -293,7 +293,7 @@ describe('non-matching filter', () => {
});

expect(data).toEqual({ updateUser: null });
const message = `Access denied: You cannot 'connect' that '{\"id\":\"${FAKE_ID}\"}'. it may not exist`;
const message = `Access denied: You cannot 'connect' that User - it may not exist`;
expectSingleRelationshipError(errors, 'updateUser', 'User.notes', message);
})
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ describe('with access control', () => {
});

expect(data).toEqual({ createUserToNotesNoRead: null });
const message = `Access denied: You cannot 'connect' that User - it may not exist`;
const message = `Access denied: You cannot 'connect' that NoteNoRead - it may not exist`;
expectSingleRelationshipError(
errors,
'createUserToNotesNoRead',
Expand Down Expand Up @@ -237,7 +237,7 @@ describe('with access control', () => {
});

expect(data).toEqual({ updateUserToNotesNoRead: null });
const message = `Access denied: You cannot 'connect' that User - it may not exist`;
const message = `Access denied: You cannot 'connect' that NoteNoRead - it may not exist`;
expectSingleRelationshipError(
errors,
'updateUserToNotesNoRead',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ describe('non-matching filter', () => {
});
expect(data).toEqual({ updateUser: null });
const message =
'Access denied: You cannot perform the \'disconnect\' operation on the item \'{"id":"c5b84f38256d3c2df59a0d9bf"}\'. It may not exist.';
'Access denied: You cannot \'disconnect\' that User - it may not exist';
expectSingleRelationshipError(errors, 'updateUser', 'User.notes', message);
})
);
Expand Down Expand Up @@ -181,7 +181,7 @@ describe('with access control', () => {
variables: { id: createUser.id, idToDisconnect: createNote.id },
});
expect(data).toEqual({ updateUserToNotesNoRead: null });
const message = `Access denied: You cannot perform the 'disconnect' operation on the item '{\"id\":\"${createNote.id}\"}'. It may not exist.`;
const message = `Access denied: You cannot 'disconnect' that User - it may not exist`;
expectSingleRelationshipError(
errors,
'updateUserToNotesNoRead',
Expand Down

0 comments on commit 73e8fe0

Please sign in to comment.