Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
dancastillo committed Jul 1, 2023
1 parent e4b000a commit 15c84d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ajv.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ test('use ajv errors with Ajv instance', async t => {
}
},
handler: async (req, reply) => {
return { foo: 24 }
return { notAnAnswer: 24 }
}
})

Expand All @@ -168,7 +168,7 @@ test('use ajv errors with Ajv instance', async t => {
})

t.equal(response.statusCode, 500)
t.equal(JSON.parse(response.payload).message, 'response should be an object with an integer property answer only')
t.equal(response.json().message, 'response should be an object with an integer property answer only')
})

test('should throw an error if ajv.plugins is not passed to instance and not array', async t => {
Expand Down

0 comments on commit 15c84d3

Please sign in to comment.