Add tests

This commit is contained in:
Dolan Miu
2023-03-15 02:46:39 +00:00
parent 352511bb55
commit 811dd61562
12 changed files with 1138 additions and 11 deletions

View File

@ -21,7 +21,7 @@ export const appendRelationship = (
type: RelationshipType,
target: string,
targetMode?: TargetModeType,
): void => {
): readonly Element[] => {
const relationshipElements = getFirstLevelElements(relationships, "Relationships");
// eslint-disable-next-line functional/immutable-data
relationshipElements.push({
@ -34,4 +34,6 @@ export const appendRelationship = (
name: "Relationship",
type: "element",
});
return relationshipElements;
};