2020-10-05 17:20:04 -04:00
|
|
|
import { module, test } from 'qunit';
|
|
|
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
|
|
|
import { render } from '@ember/test-helpers';
|
|
|
|
|
import { hbs } from 'ember-cli-htmlbars';
|
|
|
|
|
|
|
|
|
|
module('Integration | Helper | company-copyright', function (hooks) {
|
|
|
|
|
setupRenderingTest(hooks);
|
|
|
|
|
|
|
|
|
|
test('it renders', async function (assert) {
|
|
|
|
|
assert.expect(1);
|
|
|
|
|
const currentYear = new Date().getFullYear();
|
|
|
|
|
await render(hbs`{{company-copyright}}`);
|
2022-07-07 11:18:51 -07:00
|
|
|
assert.strictEqual(
|
2021-03-05 14:22:06 -05:00
|
|
|
this.element.textContent.trim(),
|
|
|
|
|
`© ${currentYear} Company Name`
|
|
|
|
|
);
|
2020-10-05 17:20:04 -04:00
|
|
|
});
|
|
|
|
|
});
|