mirror of https://github.com/status-im/consul.git
21 lines
422 B
JavaScript
21 lines
422 B
JavaScript
import { moduleForComponent, test } from 'ember-qunit';
|
|
import hbs from 'htmlbars-inline-precompile';
|
|
|
|
moduleForComponent('right-trim', 'helper:right-trim', {
|
|
integration: true,
|
|
});
|
|
|
|
// Replace this with your real tests.
|
|
test('it renders', function(assert) {
|
|
this.set('inputValue', '1234');
|
|
|
|
this.render(hbs`{{right-trim inputValue}}`);
|
|
|
|
assert.equal(
|
|
this.$()
|
|
.text()
|
|
.trim(),
|
|
'1234'
|
|
);
|
|
});
|