|
@@ -39,7 +39,7 @@ describe('whoisExists', () => {
|
|
|
})).toBe('No entries found for the selected source(s).');
|
|
})).toBe('No entries found for the selected source(s).');
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- it('nosuchpool.cl', async () => {
|
|
|
|
|
|
|
+ it('nosuchpool.cl', () => {
|
|
|
expect(noWhois({
|
|
expect(noWhois({
|
|
|
'whois.nic.cl': {
|
|
'whois.nic.cl': {
|
|
|
'Domain Status': [],
|
|
'Domain Status': [],
|
|
@@ -56,6 +56,18 @@ describe('whoisExists', () => {
|
|
|
}
|
|
}
|
|
|
})).toBe('nosuchpool.cl: no entries found.');
|
|
})).toBe('nosuchpool.cl: no entries found.');
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ it('whois.domain-registry.nl', () => {
|
|
|
|
|
+ expect(noWhois({
|
|
|
|
|
+ 'whois.domain-registry.nl': {
|
|
|
|
|
+ 'Domain Status': [],
|
|
|
|
|
+ 'Name Server': [],
|
|
|
|
|
+ text: [
|
|
|
|
|
+ 'spookyplanet.nl is free'
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
|
|
+ })).toBe('spookyplanet.nl is free');
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
describe('isDomainAlive', function () {
|
|
describe('isDomainAlive', function () {
|
|
@@ -93,8 +105,8 @@ describe('isDomainAlive', function () {
|
|
|
// expect((await isDomainAlive('.tayfundogdas.me', true))[1]).toEqual(true);
|
|
// expect((await isDomainAlive('.tayfundogdas.me', true))[1]).toEqual(true);
|
|
|
// });
|
|
// });
|
|
|
|
|
|
|
|
- it('nosuchpool.cl', async () => {
|
|
|
|
|
|
|
+ it('spookyplanet.nl', async () => {
|
|
|
process.env.DEBUG = 'true';
|
|
process.env.DEBUG = 'true';
|
|
|
- expect((await isDomainAlive('.nosuchpool.cl', true))[1]).toEqual(false);
|
|
|
|
|
|
|
+ expect((await isDomainAlive('.spookyplanet.nl', true))[1]).toEqual(false);
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|