Supertest: Testing subdomains

Created on 7 Aug 2014  路  1Comment  路  Source: visionmedia/supertest

Trying to figure out how to test subdomain routes, mainly created by the subdomain middleware. Would love some input on how to accomplish this when doing supertest(app).

Most helpful comment

Looks like the answer is .set('Host', 'subdomain.example.com') after your verb..

>All comments

Looks like the answer is .set('Host', 'subdomain.example.com') after your verb..

Was this page helpful?
0 / 5 - 0 ratings