Skip to content

Commit

Permalink
wip: remove regex in headers to see if it works around pact-foundatio…
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Jan 19, 2023
1 parent f9bf91e commit f03d747
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions examples/e2e/test/consumer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,7 @@ describe('Pact', () => {
method: 'GET',
path: '/animals/available',
headers: {
Authorization: term({
matcher: 'Bearer [A-Za-z0-9]+',
generate: 'Bearer token',
}),
Authorization: like('Bearer token'),
},
},
willRespondWith: {
Expand Down Expand Up @@ -184,10 +181,7 @@ describe('Pact', () => {
method: 'GET',
path: term({ generate: '/animals/1', matcher: '/animals/[0-9]+' }),
headers: {
Authorization: term({
matcher: 'Bearer [A-Za-z0-9]+',
generate: 'Bearer token',
}),
Authorization: like('Bearer token'),
},
},
willRespondWith: {
Expand Down Expand Up @@ -218,10 +212,7 @@ describe('Pact', () => {
method: 'GET',
path: '/animals/100',
headers: {
Authorization: term({
matcher: 'Bearer [A-Za-z0-9]+',
generate: 'Bearer token',
}),
Authorization: like('Bearer token'),
},
},
willRespondWith: {
Expand Down Expand Up @@ -251,10 +242,7 @@ describe('Pact', () => {
body: like(suitor),
headers: {
'Content-Type': 'application/json; charset=utf-8',
Authorization: term({
matcher: 'Bearer [A-Za-z0-9]+',
generate: 'Bearer token',
}),
Authorization: like('Bearer token'),
},
},
willRespondWith: {
Expand Down

0 comments on commit f03d747

Please sign in to comment.