Skip to content

Nock v9.0.24 is failing to parse path correctly #1003

@eitah

Description

@eitah

we migrated to 9.0.24 and found that Interceptor.prototype.matchIndependentOfBody is failing on path = path.split('?')[0];
when it claims we have not specified a path. Our implementation is as follows. Are we specifying path incorrectly?

        describe('when https.request is called', () => {
            it('calls server.log', () => {
                nock('https://foo')
                    .get('/')
                    .reply(200);
                https.request(
                    {
                        hostname: 'foo'
                    },
                    () => {}
                );
                expect(server.log).to.have.been.called;
            });
        });

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions