text: describe('checker:isitdown', () => {
    test('detects invalid domain name', async () => {
      global.nlu.brain.execute = jest.fn()
      await global.nlu.process('Check if github is up')
  
      const [obj] = global.nlu.brain.execute.mock.calls
      await global.brain.execute(obj[0])
  
      expect(global.brain.finalOutput.codes).toIncludeSameMembers(['invalid_domain_name'])
    })
  
    test('detects down domain name', async () => {
      global.nlu.brain.execute = jest.fn()
      await global.nlu.process('Check if fakedomainnametotestleon.ai is up')
  
      const [obj] = global.nlu.brain.execute.mock.calls
      await global.brain.execute(obj[0])
  
      expect(global.brain.finalOutput.codes).toIncludeSameMembers([
        'checking',
        'down',
        'done'
      ])
    })
  
    test('detects up domain name', async () => {
      global.nlu.brain.execute = jest.fn()
      await global.nlu.process('Check if github.com is up')
  
      const [obj] = global.nlu.brain.execute.mock.calls
      await global.brain.execute(obj[0])
  
      expect(global.brain.finalOutput.codes).toIncludeSameMembers([
        'checking',
        'up',
        'done'
      ])
    })
  
    test('detects up domain names', async () => {
      global.nlu.brain.execute = jest.fn()
      await global.nlu.process('Check if github.com and nodejs.org are up')
  
      const [obj] = global.nlu.brain.execute.mock.calls
      await global.brain.execute(obj[0])
  
      expect(global.brain.finalOutput.codes).toIncludeSameMembers([
        'checking',
        'up',
        'checking',
        'up',
        'done'
      ])
    })
  })
  