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({
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} ) ;
Original file line number Diff line number Diff 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' , / \/ 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 \/ / ) ;
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' , / \/ 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 \/ / ) ;
5761 } ) ;
5862} ) ;
You can’t perform that action at this time.
0 commit comments