mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
chore: todo tests
This commit is contained in:
parent
4e64ec6cec
commit
2f08d92b24
@ -74,6 +74,7 @@ const load = async (uid: UID.ContentType, { oldVersions }: LoadContext) => {
|
||||
}
|
||||
|
||||
// If it's a self referencing relation, there is no need to sync any relation
|
||||
// The order will already be handled as both sides are inside the same content type
|
||||
if (model.uid === uid) {
|
||||
continue;
|
||||
}
|
||||
|
@ -1,3 +1,15 @@
|
||||
/**
|
||||
* TODO:
|
||||
* # Bidirectional relations
|
||||
*
|
||||
* Testing bidirectional relations is a bit tricky with our current setup on the api test.
|
||||
* As soon as we can test it we should implement:
|
||||
* - Bidirectional relations targeting the same content type (self referencing)
|
||||
* - Can connect, disconnect, reorder
|
||||
* - Can publish and discard
|
||||
* - Test inverse order of relations is preserved when publishing.
|
||||
*
|
||||
*/
|
||||
import { createTestBuilder } from 'api-tests/builder';
|
||||
import { createStrapiInstance } from 'api-tests/strapi';
|
||||
import { createContentAPIRequest } from 'api-tests/request';
|
||||
|
Loading…
x
Reference in New Issue
Block a user