{"size": 1021, "ext": "js", "max_stars_repo_path": "tests/integration/components/misc-test.js", "max_stars_repo_name": "miguelcobain/ember-composability-tools", "max_stars_repo_stars_event_min_datetime": "2016-11-02T05:44:38.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-22T15:27:01.000Z", "max_issues_repo_path": "tests/integration/components/misc-test.js", "max_issues_repo_name": "miguelcobain/ember-composability-tools", "max_issues_repo_issues_event_min_datetime": "2016-10-28T08:04:55.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-06T03:03:08.000Z", "max_forks_repo_path": "tests/integration/components/misc-test.js", "max_forks_repo_name": "miguelcobain/ember-composability-tools", "max_forks_repo_forks_event_min_datetime": "2016-10-28T07:25:56.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-03T21:52:21.000Z"}
{"max_stars_count": 39, "max_issues_count": 47, "max_forks_count": 19, "avg_line_length": 23.7441860465, "max_line_length": 89, "alphanum_fraction": 0.5896180215}
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 | misc', function (hooks) {
  setupRenderingTest(hooks);

  test("root component without hooks doesn't error", async function (assert) {
    await render(hbs`
      <Root>
        <p>Block content</p>
      </Root>
    `);

    assert.ok(true);
  });

  test("node component without hooks doesn't error", async function (assert) {
    await render(hbs`
      <Root as |Node|>
        <Node>
          <p>Block content</p>
        </Node>
      </Root>
    `);

    assert.ok(true);
  });

  test('can customize root components tag name and attributes', async function (assert) {
    await render(hbs`
      <Root @tagName="nav" class="custom-tag" as |Node|>
        <Node>
          <p>Block content</p>
        </Node>
      </Root>
    `);

    assert.dom('nav.custom-tag').exists({ count: 1 });
  });
});
