24 lines
708 B
JavaScript
24 lines
708 B
JavaScript
import { module, test } from 'qunit';
|
|
import { setupRenderingTest } from 'meiliadmin/tests/helpers';
|
|
import { render } from '@ember/test-helpers';
|
|
import { hbs } from 'ember-cli-htmlbars';
|
|
|
|
module('Integration | Helper | eq', function (hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
// TODO: Replace this with your real tests.
|
|
test('it renders', async function (assert) {
|
|
this.set('inputValue1', '1');
|
|
this.set('inputValue2', '1');
|
|
|
|
await render(hbs`{{eq this.inputValue1 this.inputValue2}}`);
|
|
|
|
assert.dom(this.element).hasText('true');
|
|
|
|
this.set('inputValue2', '2');
|
|
|
|
await render(hbs`{{eq this.inputValue1 this.inputValue2}}`);
|
|
|
|
assert.dom(this.element).hasText('false');
|
|
});
|
|
});
|