feathers
feathers copied to clipboard
test(adapter-tests): NotFound integer & add remove:NotFound tests
This PR adds tests to @feathersjs/adapter-tests:
- 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 aGeneralErrorwithinvalid 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. .remove + NotFoundwas missing. Added it and also added.remove + NotFound (integer)