<commit_before>import Ember from 'ember';
import { initialize } from 'ember-hook';
import { module, test } from 'qunit';
import delimiter from 'ember-hook/utils/delimiter';

var registry, application;

module('Unit | Initializer | ember hook/initialize', {
  beforeEach: function() {
    Ember.run(function() {
      application = Ember.Application.create();
      registry = application.registry;
      application.deferReadiness();
    });
  }
});

test('applies the `HookMixin` to `Component`', function(assert) {
  assert.expect(2);

  initialize();

  const { Component } = Ember;
  const component = Component.create({ hook: 'foo' });

  assert.deepEqual(component.get('attributeBindings'), ['ariaRole:role', '_hookName:data-test'], 'adds _hookName to the attributeBindings');
  assert.equal(component.get('_hookName'), `foo${delimiter}`, 'adds the _hookName computed');
});<commit_msg>fix failing beta test<commit_after>import Ember from 'ember';
import { initialize } from 'ember-hook';
import { module, test } from 'qunit';
import delimiter from 'ember-hook/utils/delimiter';

var registry, application;

module('Unit | Initializer | ember hook/initialize', {
  beforeEach: function() {
    Ember.run(function() {
      application = Ember.Application.create();
      registry = application.registry;
      application.deferReadiness();
    });
  }
});

test('applies the `HookMixin` to `Component`', function(assert) {
  assert.expect(2);

  initialize();

  const { Component } = Ember;
  const component = Component.create({ hook: 'foo' });

  assert.ok(component.get('attributeBindings').indexOf('_hookName:data-test') > -1, 'adds _hookName to the attributeBindings');
  assert.equal(component.get('_hookName'), `foo${delimiter}`, 'adds the _hookName computed');
});
{'fraction_non_alphanumeric': 0.1551433389544688, 'fraction_numerical': 0.0016863406408094434, 'mean_word_length': 4.933333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3829732', 'n_tokens_mistral': 531, 'n_tokens_neox': 524, 'n_words': 126}