403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/node_modules/lighthouse/node_modules/third-party-web/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/node_modules/lighthouse/node_modules/third-party-web/lib/entities.test.js
const _ = require('lodash')
const {entities, getRootDomain, getEntity} = require('./index.js')

describe('Entities', () => {
  it('should not have duplicate names', () => {
    for (let i = 0; i < entities.length; i++) {
      for (let j = i + 1; j < entities.length; j++) {
        const nameA = entities[i].name.replace(/\s+/, '').toLowerCase()
        const nameB = entities[j].name.replace(/\s+/, '').toLowerCase()
        if (nameA !== nameB) continue

        expect(entities[i]).toBe(entities[j])
      }
    }
  })

  it('should not have non-supported wilcards', () => {
    for (const entity of entities) {
      for (const domain of entity.domains) {
        // Wildcards must be like `*.blah.com`
        // Wildcards cannot be `*blah.com` or `blah*.com`
        expect(domain).toEqual(expect.not.stringMatching(/\w\*/))
        expect(domain).toEqual(expect.not.stringMatching(/\*\w/))
      }
    }
  })

  it('should not have commas within a domain', () => {
    for (const entity of entities) {
      for (const domain of entity.domains) {
        // A domain can be `*.maxymiser.net` or `maxymiser.hs.llnwd.net`
        // A domain can't be `*.maxymiser.net, maxymiser.hs.llnwd.net`
        expect(domain).toEqual(expect.not.stringContaining(','))
      }
    }
  })
})

Youez - 2016 - github.com/yon3zu
LinuXploit