Skip to content

Commit

Permalink
tests: add component render test
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnaceMaes committed Apr 27, 2024
1 parent f42b193 commit d799803
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test-app/tests/integration/components/ph-icon-test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'test-app/tests/helpers';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';

module('Integration | Component | ph-icon', function (hooks) {
setupRenderingTest(hooks);

test('it renders', async function (assert) {
await render(hbs`<PhAcorn data-test-id="acorn" />`);

assert.dom().hasText('');
assert.dom('[data-test-id="acorn"]').exists();
});
});

0 comments on commit d799803

Please sign in to comment.