Skip to content

Commit ac3f44d

Browse files
committed
fix lint issues
1 parent 583ec14 commit ac3f44d

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

app/services/search.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ export default Service.extend({
5151
* @returns {boolean}
5252
*/
5353
hasStaleResults() {
54-
return this._lastQueriedProjectVersion !== null
55-
&& this._projectVersion !== this._lastQueriedProjectVersion;
54+
return (
55+
this._lastQueriedProjectVersion !== null &&
56+
this._projectVersion !== this._lastQueriedProjectVersion
57+
);
5658
},
5759

5860
clearResults() {
5961
set(this, 'results', emberArray());
60-
}
62+
},
6163
});

tests/acceptance/search-test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ module('Acceptance | search', function (hooks) {
4242
await fillIn('[data-test-search-input]', 'forEach');
4343

4444
// the url contains /ember/4.1/
45-
assert.dom('[data-test-search-result]').hasAttribute('href', /\/ember\/4\.1\//);
45+
assert
46+
.dom('[data-test-search-result]')
47+
.hasAttribute('href', /\/ember\/4\.1\//);
4648

4749
algoliaService.search = async () => {
4850
return searchResultsV5_1;
@@ -53,6 +55,8 @@ module('Acceptance | search', function (hooks) {
5355
await focus('[data-test-search-input]');
5456

5557
// the url contains /ember/5.1/
56-
assert.dom('[data-test-search-result]').hasAttribute('href', /\/ember\/5\.1\//);
58+
assert
59+
.dom('[data-test-search-result]')
60+
.hasAttribute('href', /\/ember\/5\.1\//);
5761
});
5862
});

0 commit comments

Comments
 (0)