mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-28 20:09:59 +00:00
15 lines
486 B
TypeScript
15 lines
486 B
TypeScript
import { module, test } from 'qunit';
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
import { render } from '@ember/test-helpers';
|
|
import hbs from 'htmlbars-inline-precompile';
|
|
|
|
module('Integration | Helper | split-text', function(hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
test('it renders', async function(assert) {
|
|
this.set('inputValue', '1234');
|
|
await render(hbs`{{split-text inputValue}}`);
|
|
assert.equal((this.element.textContent as string).trim(), '1234');
|
|
});
|
|
});
|