tests: makes code simpler in ternary condition
tests: makes code simpler in ternary condition

algolia/algoliasearch-client-javascript,algolia/algoliasearch-client-javascript,algolia/algoliasearch-client-javascript,algolia/algoliasearch-client-javascript