<commit_before>import { module, test } from 'qunit';
import setupTooltipperTest from './setup';
import { render, settled, triggerEvent } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
import waitForAnimation from '../../../helpers/wait-for-animation';

module('tooltipper', function (hooks) {
  setupTooltipperTest(hooks);

  test('stickyness', async function (assert) {
    assert.expect(4);

    await render(hbs`
      <Tooltipper @showDelay={{1000}} @stickyID="A" @tooltip={{component "tooltip" text="foo"}} />
      <Tooltipper @showDelay={{1000}} @stickyID="A" @tooltip={{component "tooltip" text="bar"}} />
      <Tooltipper @showDelay={{1000}} @stickyID="B" @tooltip={{component "tooltip" text="baz"}} />
      <Tooltipper @showDelay={{1000}} @stickyID="B" @tooltip={{component "tooltip" text="qux"}} />
    `);

    this.startTimer();

    await triggerEvent('.tooltipper:nth-child(1)', 'mouseenter');

    this.stopTimer();

    assert.ok(this.timeTaken() >= 1000, 'initial show delay acknowledged');

    this.startTimer();

    await triggerEvent('.tooltipper:nth-child(2)', 'mouseenter');
<commit_msg>lint file<commit_after>import { module, test } from 'qunit';
import setupTooltipperTest from './setup';
import { render, triggerEvent } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';

module('tooltipper', function (hooks) {
  setupTooltipperTest(hooks);

  test('stickyness', async function (assert) {
    assert.expect(4);

    await render(hbs`
      <Tooltipper @showDelay={{1000}} @stickyID="A" @tooltip={{component "tooltip" text="foo"}} />
      <Tooltipper @showDelay={{1000}} @stickyID="A" @tooltip={{component "tooltip" text="bar"}} />
      <Tooltipper @showDelay={{1000}} @stickyID="B" @tooltip={{component "tooltip" text="baz"}} />
      <Tooltipper @showDelay={{1000}} @stickyID="B" @tooltip={{component "tooltip" text="qux"}} />
    `);

    this.startTimer();

    await triggerEvent('.tooltipper:nth-child(1)', 'mouseenter');

    this.stopTimer();

    assert.ok(this.timeTaken() >= 1000, 'initial show delay acknowledged');

    this.startTimer();

    await triggerEvent('.tooltipper:nth-child(2)', 'mouseenter');

{'fraction_non_alphanumeric': 0.1890049977283053, 'fraction_numerical': 0.020899591094956836, 'mean_word_length': 5.032876712328767, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '132786', 'n_tokens_mistral': 714, 'n_tokens_neox': 711, 'n_words': 142}