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

Open
wants to merge 1 commit into
base: dove
Choose a base branch
from

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)

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.

None yet

1 participant