<commit_before>import { moduleForComponent, test } from 'ember-qunit';
import { clickTrigger } from '../../helpers/ember-power-select';
import hbs from 'htmlbars-inline-precompile';
import Ember from 'ember';

const { set } = Ember;
const clickEPSTreeTrigger = () => clickTrigger('.ember-power-select-tree');
const getOptionNode = s => $(`.ember-power-select-tree-leaf:contains(${s})`);
const getGroupNode = s => $(`.ember-power-select-group:contains(${s})`);
const getSelectedGroup = s => $(`.ember-power-select-tree-selected-group:contains(${s})`);
const getSelectedOption = s => $(`.ember-power-select-tree-selected-option:contains(${s})`);
const selectOption = s => getOptionNode(s).find('.ember-power-select-tree-leaf-checkbox input').click();
const toggleGroup = s => getGroupNode(s).last().find('.ember-power-select-tree-group-name').click();
const selectGroup = s => getGroupNode(s).last().find('.ember-power-select-tree-group-checkbox input').first().click();
const isOptChecked = s => getOptionNode(s).last().find('input').prop('checked');
const isGroupChecked = s => getGroupNode(s).last().find('input').prop('checked');
const selectedOptions = [{key: 1, label: 'one'}];
const treeOptions = [{
  groupName: 'Interests',
  isSelectable: true,
  options: [{
      key: 1, label: 'one'
    }, {
      key: 2, label: 'two'
    }, {
      groupName: 'SubNodes',
      isSelectable: true,
      options: [
        {key: 5, label: 'five'},
        {
          groupName: 'DeepDeepInside',
          isSelectable: true,
          options: [{key: 6, label: 'six'}]
        }
      ]
    }<commit_msg>FIX: some test helpers<commit_after>import { moduleForComponent, test } from 'ember-qunit';
import { clickTrigger } from '../../helpers/ember-power-select';
import hbs from 'htmlbars-inline-precompile';
import Ember from 'ember';

const { set } = Ember;
const clickEPSTreeTrigger = () => clickTrigger('.ember-power-select-tree');
const getOptionNode = s => $(`.ember-power-select-tree-leaf:contains(${s})`);
const getGroupNode = s => $(`.ember-power-select-group:contains(${s})`);
const getSelectedGroup = s => $(`.ember-power-select-tree-selected-group:contains(${s})`);
const getSelectedOption = s => $(`.ember-power-select-tree-selected-option:contains(${s})`);
const selectOption = s => getOptionNode(s).find('.ember-power-select-tree-leaf-checkbox input').first().click();
const toggleGroup = s => getGroupNode(s).last().find('.ember-power-select-tree-group-container').first().click();
const selectGroup = s => getGroupNode(s).last().find('.ember-power-select-tree-group-checkbox input').first().click();
const isOptChecked = s => getOptionNode(s).last().find('input').prop('checked');
const isGroupChecked = s => getGroupNode(s).last().find('input').prop('checked');
const selectedOptions = [{key: 1, label: 'one'}];
const treeOptions = [{
  groupName: 'Interests',
  isSelectable: true,
  options: [{
      key: 1, label: 'one'
    }, {
      key: 2, label: 'two'
    }, {
      groupName: 'SubNodes',
      isSelectable: true,
      options: [
        {key: 5, label: 'five'},
        {
          groupName: 'DeepDeepInside',
          isSelectable: true,
          options: [{key: 6, label: 'six'}]
        }
      ]
    }
{'fraction_non_alphanumeric': 0.19573283858998144, 'fraction_numerical': 0.0030921459492888066, 'mean_word_length': 4.023291925465839, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '3431318', 'n_tokens_mistral': 1010, 'n_tokens_neox': 1008, 'n_words': 203}