Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize unexpected properties #208

Merged
merged 2 commits into from
Mar 7, 2022

Conversation

orangejulius
Copy link
Member

Without normalizers being applied, many unexpected property checks are likely passing, when they really should fail.

For example, an unexpected property check for 'FOO', would not alert to the existice of 'Foo', even if there was a toLowerCase normalizer set for that property.

I've also included some nice refactoring in this PR. There is logic that can be shared across the now 3 places we do normalization (test expected properties, test unexpected properties, and the actual response properties)

Without normalizers being applied, many unexpected property checks are
likely passing, when they really should fail.

For example, an unexpected property check for 'FOO', would not alert to
the existice of 'Foo', even if there was a `toLowerCase` normalizer set
for that property.
@orangejulius orangejulius merged commit ed203f6 into master Mar 7, 2022
@orangejulius orangejulius deleted the normalize-unexpected-properties branch March 7, 2022 21:17
orangejulius added a commit to pelias/fuzzy-tests that referenced this pull request Mar 8, 2022
This requires pelias/fuzzy-tester#208 to
function but helps us measure duplicates
orangejulius added a commit to pelias/fuzzy-tests that referenced this pull request Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant