Skip to content

Commit

Permalink
Added test for dot it
Browse files Browse the repository at this point in the history
  • Loading branch information
frauri authored Jan 13, 2023
1 parent ce4ea87 commit 7c93da6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/domains.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ describe('#whoiser.domain()', function() {
assert.notStrictEqual(whois['whois.ua']['administrative contacts organization-loc'], false, 'Does not return admin name')
assert.notStrictEqual(whois['whois.ua']['technical contacts organization-loc'], false, 'Does not return tech name')
});

it('returns WHOIS for "google.it"', async function() {
let whois = await whoiser.domain('google.it')
assert.equal(whois['whois.nic.it']['Domain Name'], 'google.it', 'Domain name doesn\'t match')
assert.equal(whois['whois.nic.it']['Name Server'].length, 4, 'Incorrect number of NS returned')
assert.equal(whois['whois.nic.it']['Registrar'], 'MarkMonitor International Limited MARKMONITOR-REG', 'Registrar name doesn\'t match')
});
});

});

0 comments on commit 7c93da6

Please sign in to comment.