File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,13 @@ export default Service.extend({
51
51
* @returns {boolean }
52
52
*/
53
53
hasStaleResults ( ) {
54
- return this . _lastQueriedProjectVersion !== null
55
- && this . _projectVersion !== this . _lastQueriedProjectVersion ;
54
+ return (
55
+ this . _lastQueriedProjectVersion !== null &&
56
+ this . _projectVersion !== this . _lastQueriedProjectVersion
57
+ ) ;
56
58
} ,
57
59
58
60
clearResults ( ) {
59
61
set ( this , 'results' , emberArray ( ) ) ;
60
- }
62
+ } ,
61
63
} ) ;
Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ module('Acceptance | search', function (hooks) {
42
42
await fillIn ( '[data-test-search-input]' , 'forEach' ) ;
43
43
44
44
// the url contains /ember/4.1/
45
- assert . dom ( '[data-test-search-result]' ) . hasAttribute ( 'href' , / \/ e m b e r \/ 4 \. 1 \/ / ) ;
45
+ assert
46
+ . dom ( '[data-test-search-result]' )
47
+ . hasAttribute ( 'href' , / \/ e m b e r \/ 4 \. 1 \/ / ) ;
46
48
47
49
algoliaService . search = async ( ) => {
48
50
return searchResultsV5_1 ;
@@ -53,6 +55,8 @@ module('Acceptance | search', function (hooks) {
53
55
await focus ( '[data-test-search-input]' ) ;
54
56
55
57
// the url contains /ember/5.1/
56
- assert . dom ( '[data-test-search-result]' ) . hasAttribute ( 'href' , / \/ e m b e r \/ 5 \. 1 \/ / ) ;
58
+ assert
59
+ . dom ( '[data-test-search-result]' )
60
+ . hasAttribute ( 'href' , / \/ e m b e r \/ 5 \. 1 \/ / ) ;
57
61
} ) ;
58
62
} ) ;
You can’t perform that action at this time.
0 commit comments