Split components into object-metadata and object-record (#2425)

* Split components into object-metadata and object-record

* Fix seed
This commit is contained in:
Charles Bochet
2023-11-10 15:54:32 +01:00
committed by GitHub
parent 04c618284f
commit 54d7acd518
93 changed files with 209 additions and 266 deletions

View File

@ -7,7 +7,7 @@ import {
} from 'src/tenant/utils/deduce-relation-direction.util';
describe('deduceRelationDirection', () => {
it('should return FROM when the current object ID matches fromObjectMetadataId', () => {
it('should return FROM when the current object Metadata ID matches fromObjectMetadataId', () => {
const currentObjectId = 'from_object_id';
const relationMetadata = {
id: 'relation_id',
@ -26,7 +26,7 @@ describe('deduceRelationDirection', () => {
expect(result).toBe(RelationDirection.FROM);
});
it('should return TO when the current object ID matches toObjectMetadataId', () => {
it('should return TO when the current object Metadata ID matches toObjectMetadataId', () => {
// Arrange
const currentObjectId = 'to_object_id';
const relationMetadata = {
@ -46,7 +46,7 @@ describe('deduceRelationDirection', () => {
expect(result).toBe(RelationDirection.TO);
});
it('should throw an error when the current object ID does not match any object metadata ID', () => {
it('should throw an error when the current object Metadata ID does not match any object metadata ID', () => {
const currentObjectId = 'unrelated_object_id';
const relationMetadata = {
id: 'relation_id',