Files
threshold-ui/addons/core/tests/integration/helpers/company-copyright-test.js
T
Carlos Alcaide Corvo b51c8203ee chore: 🤖 Upgrade eslint-plugin-qunit (#2011)
* chore: 🤖 Upgrade eslint-plugin-qunit

* Delete unnecessary assert.expect from tests
2023-12-08 12:56:00 -08:00

18 lines
540 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) {
const currentYear = new Date().getFullYear();
await render(hbs`{{company-copyright}}`);
assert.strictEqual(
this.element.textContent.trim(),
`© ${currentYear} Company Name`,
);
});
});