Gina
02/10/2023, 12:44 PMdescribe('Customers', () => {
it('returns customer data', async () => {
const interaction = {
state: 'Server is healthy',
uponReceiving: 'Request Person',
willRespondWith: {
status: 200,
body: like(responseData),
},
withRequest: {
method: 'GET',
path: term({
generate: '/some/path?id=1234567',
matcher: '/some/path?id=(w{7})',
}),
},
}
await provider.addInteraction(interaction)
await client.getPerson('1234567').then((person) => {
expect(person).toEqual(responseData)
})
})
})
Could anyone advise please?Timothy Jones
02/11/2023, 12:57 PMTimothy Jones
02/11/2023, 12:57 PMTimothy Jones
02/11/2023, 12:57 PMTimothy Jones
02/11/2023, 12:57 PMTimothy Jones
02/11/2023, 12:58 PMTimothy Jones
02/11/2023, 12:59 PMpath: '/some/path?id=1234567',
?Timothy Jones
02/11/2023, 12:59 PMGina
02/13/2023, 7:14 AM