Fix age filtering regression (#778)

* Show filter control in loading/error
* Add performer age unit tests
* Fix addWhere regression
This commit is contained in:
WithoutPants
2020-08-31 18:17:17 +10:00
committed by GitHub
parent b437425a41
commit 16ea6abf91
5 changed files with 95 additions and 34 deletions

View File

@@ -229,6 +229,7 @@ func verifyScenesOCounter(t *testing.T, oCounterCriterion models.IntCriterionInp
}
func verifyInt(t *testing.T, value int, criterion models.IntCriterionInput) {
t.Helper()
assert := assert.New(t)
if criterion.Modifier == models.CriterionModifierEquals {
assert.Equal(criterion.Value, value)