Get tests passing again

This commit is contained in:
Michael Jackson
2019-07-09 17:21:25 -07:00
parent 2e3c9ff526
commit f3ecddea47
42 changed files with 309 additions and 305 deletions

View File

@ -3,9 +3,7 @@ export default function createSearch(query) {
const params = keys.reduce(
(memo, key) =>
memo.concat(
query[key] === ''
? key // Omit the trailing "=" from key=
: `${key}=${encodeURIComponent(query[key])}`
query[key] ? `${key}=${encodeURIComponent(query[key])}` : key
),
[]
);