is-domain-alive.test.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import { describe, it } from 'mocha';
  2. import { isDomainAlive } from './is-domain-alive';
  3. import { expect } from 'expect';
  4. import process from 'node:process';
  5. describe('isDomainAlive', function () {
  6. this.timeout(10000);
  7. // it('.cryptocrawler.io', async () => {
  8. // expect((await isDomainAlive('.cryptocrawler.io', true))[1]).toEqual(false);
  9. // });
  10. // it('.tunevideo.ru', async () => {
  11. // expect((await isDomainAlive('.tunevideo.ru', true))[1]).toEqual(false);
  12. // });
  13. // it('.myqloud.com', async () => {
  14. // expect((await isDomainAlive('.myqloud.com', true))[1]).toEqual(true);
  15. // });
  16. // it('discount-deal.org', async () => {
  17. // expect((await isDomainAlive('discount-deal.org', false))[1]).toEqual(false);
  18. // });
  19. // it('ithome.com.tw', async () => {
  20. // expect((await isDomainAlive('ithome.com.tw', false))[1]).toEqual(true);
  21. // });
  22. // it('flipkart.com', async () => {
  23. // expect((await isDomainAlive('flipkart.com', false))[1]).toEqual(true);
  24. // });
  25. // it('lzzyimg.com', async () => {
  26. // expect((await isDomainAlive('.lzzyimg.com', true))[1]).toEqual(true);
  27. // });
  28. // it('tayfundogdas.me', async () => {
  29. // expect((await isDomainAlive('.tayfundogdas.me', true))[1]).toEqual(true);
  30. // });
  31. it('ecdasoin.it', async () => {
  32. process.env.DEBUG = 'true';
  33. expect((await isDomainAlive('.ecdasoin.it', true))[1]).toEqual(false);
  34. });
  35. });