Skip to content

Commit 129858e

Browse files
committed
Search module
1 parent 0913082 commit 129858e

File tree

4 files changed

+6
-44
lines changed

4 files changed

+6
-44
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="ui small icon input">
2-
{{input type="text" placeholder="Search ..."}}
2+
{{input type="text" value=searchQuery placeholder="Search ..." }}
33
<i class="search icon"></i>
44
</div>

tests/integration/components/tables/events/list-test.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

tests/integration/components/tables/base-test.js renamed to tests/integration/components/tables/headers/sort-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ import { setupRenderingTest } from 'ember-qunit';
33
import { render } from '@ember/test-helpers';
44
import hbs from 'htmlbars-inline-precompile';
55

6-
module('Integration | Component | tables/base', function(hooks) {
6+
module('Integration | Component | tables/headers/sort', function(hooks) {
77
setupRenderingTest(hooks);
88

99
test('it renders', async function(assert) {
1010
// Set any properties with this.set('myProperty', 'value');
1111
// Handle any actions with this.set('myAction', function(val) { ... });
1212

13-
await render(hbs`{{tables/base}}`);
13+
await render(hbs`{{tables/headers/sort}}`);
1414

1515
assert.equal(this.element.textContent.trim(), '');
1616

1717
// Template block usage:
1818
await render(hbs`
19-
{{#tables/base}}
19+
{{#tables/headers/sort}}
2020
template block text
21-
{{/tables/base}}
21+
{{/tables/headers/sort}}
2222
`);
2323

2424
assert.equal(this.element.textContent.trim(), 'template block text');

tests/integration/components/tables/utilities/search-box-test.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,8 @@ module('Integration | Component | tables/utilities/search-box', function(hooks)
77
setupRenderingTest(hooks);
88

99
test('it renders', async function(assert) {
10-
// Set any properties with this.set('myProperty', 'value');
11-
// Handle any actions with this.set('myAction', function(val) { ... });
1210

1311
await render(hbs`{{tables/utilities/search-box}}`);
14-
15-
assert.equal(this.element.textContent.trim(), '');
16-
17-
// Template block usage:
18-
await render(hbs`
19-
{{#tables/utilities/search-box}}
20-
template block text
21-
{{/tables/utilities/search-box}}
22-
`);
23-
24-
assert.equal(this.element.textContent.trim(), 'template block text');
12+
assert.ok(this.element.innerHTML.trim().includes('Search'));
2513
});
2614
});

0 commit comments

Comments
 (0)