Skip to content

Commit

Permalink
GQL-87: Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mandyparson committed Oct 29, 2024
1 parent 37f1182 commit 7bc50a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/__tests__/parseError.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ describe('parseError', () => {
response: {
data: {
errors: [{
path: [ 'Platforms', 0, 'ComposedOf' ],
path: ['Platforms', 0, 'ComposedOf'],
errors: [
'Composed Of must be unique. This contains duplicates named [ATM].'
]
Expand All @@ -159,8 +159,8 @@ describe('parseError', () => {
})

expect(consoleMock).toBeCalledTimes(1)
expect(consoleMock.mock.calls[0]).toEqual([`CMR Error (422): {\"path\":[\"Platforms\",0,\"ComposedOf\"],\"errors\":[\"Composed Of must be unique. This contains duplicates named [ATM].\"]}`])

// eslint-disable-next-line quotes
expect(consoleMock.mock.calls[0]).toEqual([`CMR Error (422): {"path":["Platforms",0,"ComposedOf"],"errors":["Composed Of must be unique. This contains duplicates named [ATM]."]}`])
expect(response).toEqual({
statusCode: 422,
body: JSON.stringify({
Expand Down

0 comments on commit 7bc50a5

Please sign in to comment.