text: /* global describe it beforeEach */
  require('../../general.js')
  
  const db = require('../../general.js').db
  const message = require('../../general.js').message
  
  // users
  const owner = { username: 'soge__' }
  
  describe('Custom Commands - toggleVisibility()', () => {
    beforeEach(async () => {
      await db.cleanup()
      await message.prepare()
    })
  
    it('', async () => {
      global.systems.customCommands.toggleVisibility({ sender: owner, parameters: '' })
      await message.isSent('customcmds.commands-parse-failed', owner, { sender: owner.username })
    })
  
    it('!unknown', async () => {
      global.systems.customCommands.toggleVisibility({ sender: owner, parameters: '!unknown' })
      await message.isSent('customcmds.command-was-not-found', owner, { command: '!unknown', sender: owner.username })
    })
  
    it('!한글', async () => {
      global.systems.customCommands.add({ sender: owner, parameters: '!한글 !uptime' })
      await message.isSent('customcmds.command-was-added', owner, { command: '!한글', sender: owner.username })
  
      global.systems.customCommands.toggleVisibility({ sender: owner, parameters: '!한글' })
      await message.isSent('customcmds.command-was-concealed', owner, { command: '!한글', sender: owner.username })
  
      global.systems.customCommands.toggleVisibility({ sender: owner, parameters: '!한글' })
      await message.isSent('customcmds.command-was-exposed', owner, { command: '!한글', sender: owner.username })
    })
  
    it('!русский', async () => {
      global.systems.customCommands.add({ sender: owner, parameters: '!русский !uptime' })
      await message.isSent('customcmds.command-was-added', owner, { command: '!русский', sender: owner.username })
  
      global.systems.customCommands.toggleVisibility({ sender: owner, parameters: '!русский' })
      await message.isSent('customcmds.command-was-concealed', owner, { command: '!русский', sender: owner.username })
  
      global.systems.customCommands.toggleVisibility({ sender: owner, parameters: '!русский' })
      await message.isSent('customcmds.command-was-exposed', owner, { command: '!русский', sender: owner.username })
    })
  })
  