Created
July 31, 2014 16:50
-
-
Save misterdjules/a06d55d2eb3e3fe74fa7 to your computer and use it in GitHub Desktop.
Example of dns.lookupService test
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
TEST(function test_lookupservice_ip_ipv4(done) { | |
var req = dns.lookupService('127.0.0.1', 80, function(err, host, service) { | |
if (err) throw err; | |
assert.strictEqual(host, 'localhost'); | |
assert.strictEqual(service, 'http'); | |
done(); | |
}); | |
checkWrap(req); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment