and refactor to use company-name and company-copyright helpers, rather than translations
16 lines
534 B
JavaScript
16 lines
534 B
JavaScript
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}}`);
|
|
assert.equal(this.element.textContent.trim(), `© ${currentYear} HashiCorp`);
|
|
});
|
|
});
|