forked from skepticfx/subquest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed by moving the getResolvers method to separate test, since setServers doesn't play well with async code: see node/issues/1071 this will be fixed in node 8
- Loading branch information
Filippo Conti
committed
Oct 26, 2017
1 parent
5f8a181
commit 7d773ad
Showing
2 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
var subquest = require('../index.js') | ||
|
||
describe('Resolvers method', function() { | ||
describe('adds a user defined DNS server to the stack', function() { | ||
it('returns user defined DNS server as first', function(done) { | ||
// Custom DNS server | ||
let customDNS = '91.239.100.100' | ||
|
||
// Get resolvers list by adding valid provided server | ||
subquest.getResolvers(customDNS, function(result) { | ||
expect(result[0]).toBe(customDNS) | ||
done() | ||
}) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters