use a IETF reserved domain name for invalid dns test
This commit is contained in:
parent
d28febd497
commit
2ebaee639f
|
@ -356,7 +356,7 @@ describe('node-fetch', function() {
|
|||
});
|
||||
|
||||
it('should handle DNS-error response', function() {
|
||||
url = 'http://invalid.commm';
|
||||
url = 'http://domain.invalid';
|
||||
return expect(fetch(url)).to.eventually.be.rejected
|
||||
.and.be.an.instanceOf(FetchError)
|
||||
.and.have.property('code', 'ENOTFOUND');
|
||||
|
|
Loading…
Reference in New Issue