Skip to content

Commit

Permalink
chore: add example test for #1058
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Aug 2, 2023
1 parent 38a68fb commit ac9b1e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/mocha/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ exports.getMeDogs = (endpoint) => {
baseURL: `${url}:${port}`,
url: '/dogs',
headers: {
'X-Custom-Header':
'{"id":"asd-asdasd-sd","additionalInfo":"some additional string"}',
Accept: [
'application/problem+json',
'application/json',
Expand Down
2 changes: 2 additions & 0 deletions examples/mocha/test/get-dogs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ describe('The Dog API', () => {
method: 'GET',
path: '/dogs',
headers: {
'X-Custom-Header':
'{"id":"asd-asdasd-sd","additionalInfo":"some additional string"}',
// Accept: 'application/problem+json, application/json, text/plain, */*', // <- fails, must use array syntax ❌
Accept: [
'application/problem+json',
Expand Down

0 comments on commit ac9b1e0

Please sign in to comment.