Skip to content

test: add coverage for plain where equality#1766

Open
Omar-Tnt04 wants to merge 1 commit into
typicode:mainfrom
Omar-Tnt04:test/where-plain-equality
Open

test: add coverage for plain where equality#1766
Omar-Tnt04 wants to merge 1 commit into
typicode:mainfrom
Omar-Tnt04:test/where-plain-equality

Conversation

@Omar-Tnt04
Copy link
Copy Markdown
Contributor

This PR adds regression test coverage for plain equality shorthand inside _where.

The new test documents the expected behavior for:

_where={"title":"foo"}

Currently, this test fails because json-server returns an empty array instead of matching the record. This highlights the confusing difference between normal query equality (title=foo) and _where operator-object syntax (_where={"title":{"eq":"foo"}}).

Test result:

  • Expected: [{"id":"1","title":"foo"}]
  • Actual: []

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