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

test(adapter-tests): NotFound integer & add remove:NotFound tests #3486

Merged
merged 1 commit into from
May 30, 2024

Conversation

fratzinger
Copy link
Member

This PR adds tests to @feathersjs/adapter-tests:

  1. add test for id as number: The tests for NotFound (.get, .update, .patch) use a string as id. This does not work for postgres + sequelize with serial ids because sequelize throws a GeneralError with invalid input syntax for type integer: "568225fbfe21222432e836ff" which is perfectly fine. I added tests for an integer id. So every adapter can pick which tests to use.
  2. .remove + NotFound was missing. Added it and also added .remove + NotFound (integer)

@daffl daffl merged commit a02febb into dove May 30, 2024
5 checks passed
@daffl daffl deleted the test/NotFound-integer branch May 30, 2024 23:27
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.

2 participants