eugef / node-mocks-http

Mock 'http' objects for testing Express routing functions
Other
747 stars 131 forks source link

subdomains property in the request not supported #283

Closed itayzemah closed 6 months ago

itayzemah commented 7 months ago

I want to add the property subdomains in the request and it is not added. The property stays empty event in this example: const req = createRequest({ subdomains: ['aaa'] });

eugef commented 7 months ago

Hi @itayzemah if property is not supported through parameters you can always try to set it directly.

const req = createRequest();
req.subdomains = ['aaa'];