* refactor: 💡 explicitly inject the store service - icu-6770 ✅ Closes: icu-6770 * refactor: 💡 upgrade to ember-intl 6.0.1 includes locale initialization and smoke tests * refactor: 💡 migrate admin and desktop to ember-intl 6.x ✅ Closes: icu-6771 * chore: 🤖 exclude cldr-core@38.1.0 from license checking this license was manually checked * fix: 🐛 fix text naming and linting * chore: 🤖 update to ember-intl beta
24 lines
740 B
JavaScript
24 lines
740 B
JavaScript
import { module, test } from 'qunit';
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
import { render, find } from '@ember/test-helpers';
|
|
import { hbs } from 'ember-cli-htmlbars';
|
|
import { setupIntl } from 'ember-intl/test-support';
|
|
|
|
module('Integration | Component | hidden-secret', function (hooks) {
|
|
setupRenderingTest(hooks);
|
|
setupIntl(hooks);
|
|
|
|
test('it renders with a secret', async function (assert) {
|
|
assert.expect(2);
|
|
await render(hbs`
|
|
<HiddenSecret @secret='AAaaBBccDDeeOTXzSMT1234BB_Z8JzG7JkSVxI' />
|
|
`);
|
|
|
|
assert.ok(find('.hidden-secret'));
|
|
assert.strictEqual(
|
|
find('.hidden-secret > span > span').textContent.trim(),
|
|
'■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■'
|
|
);
|
|
});
|
|
});
|