<commit_before>import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';

module('Integration | Component | ember anchor', function(hooks) {
  setupRenderingTest(hooks);

  test('it renders', async function(assert) {
    // Set any properties with this.set('myProperty', 'value');
    // Handle any actions with this.on('myAction', function(val) { ... });

    await render(hbs`{{ember-anchor}}`);

    assert.equal(
      this.$()
        .text()
        .trim(),
      ''
    );

    // Template block usage:
    await render(hbs`
      {{#ember-anchor}}
        template block text
      {{/ember-anchor}}
    `);

    assert.equal(
      this.$()
        .text()
        .trim(),
      'template block text'
    );
  });
});<commit_msg>chore: no more jquery in tests<commit_after>import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';

module('Integration | Component | ember anchor', function(hooks) {
  setupRenderingTest(hooks);

  test('it renders', async function(assert) {
    // Set any properties with this.set('myProperty', 'value');
    // Handle any actions with this.on('myAction', function(val) { ... });

    await render(hbs`{{ember-anchor}}`);

    assert.equal(this.element.innerText.trim(), '');

    // Template block usage:
    await render(hbs`
      {{#ember-anchor}}
        template block text
      {{/ember-anchor}}
    `);

    assert.equal(this.element.innerText.trim(), 'template block text');
  });
});
{'fraction_non_alphanumeric': 0.1657754010695187, 'fraction_numerical': 0.0, 'mean_word_length': 3.087378640776699, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3394929', 'n_tokens_mistral': 508, 'n_tokens_neox': 511, 'n_words': 123}