Files
threshold-ui/addons/rose/tests/integration/components/rose/icon-test.js
T
Amy Lam aa5b813791 Ran a find and replace
New namespacing. `flight-icons/` replace with `flight-icons/svg/`
2021-09-16 14:24:38 -07:00

21 lines
640 B
JavaScript

import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | rose/icon', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
await render(hbs`<Rose::Icon @name="flight-icons/svg/globe-16" />`);
assert.ok(find('svg'));
});
test('it supports optional @size', async function (assert) {
await render(
hbs`<Rose::Icon @name="flight-icons/svg/globe-16" @size="small" />`
);
assert.ok(find('.small'));
});
});