dipscope / JsonApiEntityProvider.TS

Json api entity provider implementation for entity store.
Apache License 2.0
9 stars 4 forks source link

Add Morph Relationship Testing #16

Closed DellanX closed 1 year ago

DellanX commented 1 year ago

Description

Added code to support testing the API communication for polymorphic relationships. This includes adding Spouse to Human for a polymorphic-to-one relationship.

At the moment of PR creation, the backend does not return any children under the /mans/:id/children or /womans/:id/children endpoints. This prevents morph-to-many testing from being functional.

DellanX commented 1 year ago

I created this PR to add the tests I was working on for #15; however, I don't think these tests are necessary. Feel free to cancel this PR in the case that you determine that the testing is unnecessary.