Files
threshold-ui/addons/rose/tests/integration/components/rose/footer-test.js
T

42 lines
1.2 KiB
JavaScript

import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | rose/footer', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
assert.expect(4);
await render(hbs`<Rose::Footer />`);
assert.ok(find('.rose-footer'));
assert.notOk(find('.rose-footer-nav'));
assert.notOk(find('.rose-footer-text'));
assert.notOk(find('.rose-footer-brand'));
});
test('it renders with brand', async function (assert) {
assert.expect(1);
await render(hbs`<Rose::Footer as |footer| >
<footer.brand />
</Rose::Footer>`);
assert.ok(find('.rose-footer-brand'));
});
test('it renders with nav', async function (assert) {
assert.expect(1);
await render(hbs`<Rose::Footer as |footer| >
<footer.nav />
</Rose::Footer>`);
assert.ok(find('.rose-footer-nav'));
});
test('it renders with text', async function (assert) {
assert.expect(1);
await render(hbs`<Rose::Footer as |footer| >
<footer.text />
</Rose::Footer>`);
assert.ok(find('.rose-footer-text'));
});
});