<commit_before>
nikita = require '../../../src'
utils = require '../../../src/utils'
{tags, config} = require '../../test'
they = require('mocha-they')(config)

describe 'actions.execute.config.arch_linux', ->
  return unless tags.system_execute_arc_chroot
  
  describe 'schema', ->
    
    it 'arch_chroot require arch_chroot_rootdir', ->
      nikita.execute
        arch_chroot: true
        command: ''
        $handler: (->)
      .should.be.rejectedWith
        code: 'NIKITA_SCHEMA_VALIDATION_CONFIG'
        message: [
          'NIKITA_SCHEMA_VALIDATION_CONFIG:'
          'one error was found in the configuration of action `execute`:'
          '#/dependencies/arch_chroot/required config should have required property \'arch_chroot_rootdir\'.'
        ].join ' '
  
  describe 'usage', ->

    they 'target as string', ({ssh}) -><commit_msg>test(core): fix error message assertion<commit_after>
nikita = require '../../../src'
utils = require '../../../src/utils'
{tags, config} = require '../../test'
they = require('mocha-they')(config)

describe 'actions.execute.config.arch_linux', ->
  return unless tags.system_execute_arc_chroot
  
  describe 'schema', ->
    
    it 'arch_chroot require arch_chroot_rootdir', ->
      nikita.execute
        arch_chroot: true
        command: ''
        $handler: (->)
      .should.be.rejectedWith
        code: 'NIKITA_SCHEMA_VALIDATION_CONFIG'
        message: [
          'NIKITA_SCHEMA_VALIDATION_CONFIG:'
          'one error was found in the configuration of action `execute`:'
          '#/definitions/config/dependencies/arch_chroot/required config should have required property \'arch_chroot_rootdir\'.'
        ].join ' '
  
  describe 'usage', ->

    they 'target as string', ({ssh}) ->
{'fraction_non_alphanumeric': 0.14301994301994303, 'fraction_numerical': 0.0, 'mean_word_length': 2.6659707724425887, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3137539', 'n_tokens_mistral': 542, 'n_tokens_neox': 530, 'n_words': 122}