-
-
Notifications
You must be signed in to change notification settings - Fork 685
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
MockAgent comparse the origin in case-sensetive way
Reproducible By
const url = 'http://myEndpoint';
const mockAgent = new MockAgent();
const mockPool = mockAgent.get(url);
mockPool
.intercept({
path: '/path',
method: 'GET',
})
.reply(
200,
{ key: 'value' },
{
headers: { 'content-type': 'application/json' },
},
);
await mockAgent.request({
origin: new URL(url),
method: 'GET',
path: '/path',
});Expected Behavior
The reuqest is interecepted and correct reply returned
Logs & Screenshots
but actuin behavior is
getaddrinfo ENOTFOUND myendpoint
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working