feat: add support for range filters

This commit is contained in:
Wieland Schöbl
2021-02-24 15:31:22 +01:00
committed by Rainer Killinger
parent dcf7906f79
commit dc169746e7
4 changed files with 17 additions and 188 deletions

View File

@@ -276,7 +276,7 @@ describe('Query', function () {
limit: out,
}
// @ts-ignore implicit any
expectedFilter.range.price[`${location === 'upperBound' ? 'g' : 'l'}${bound === 'inclusive' ? 'te' : 't'}`] = out;
expectedFilter.range.price[`${location === 'lowerBound' ? 'g' : 'l'}${bound === 'inclusive' ? 'te' : 't'}`] = out;
}
}
setBound('upperBound', upperMode);
@@ -328,7 +328,7 @@ describe('Query', function () {
limit: out,
}
// @ts-ignore implicit any
expectedFilter.range.price[`${location === 'upperBound' ? 'g' : 'l'}${bound === 'inclusive' ? 'te' : 't'}`] = out;
expectedFilter.range.price[`${location === 'lowerBound' ? 'g' : 'l'}${bound === 'inclusive' ? 'te' : 't'}`] = out;
}
}
setBound('upperBound', upperMode);