Skip to content

Commit

Permalink
make codacy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
loreanvictor committed Nov 25, 2023
1 parent 1f23011 commit 828a0b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tests/unit/compat/v2/helper-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ describe('test compat helpers for modifying diagrams.', () => {
});

test('can find elements.', () => {
expect(findElement(model, class1Id)!.owner).toEqual(packageId);
expect(findElement(modelV2, class1Id)!.owner).toEqual(packageId);
expect(findElement(model, class1Id)?.owner).toEqual(packageId);
expect(findElement(modelV2, class1Id)?.owner).toEqual(packageId);
expect(findElement(model, 'non-existing-id')).toBeUndefined();
expect(findElement(modelV2, 'non-existing-id')).toBeUndefined();
});

test('can find relationships.', () => {
expect(findRelationship(model, relId)!.source.element).toEqual(class2Id);
expect(findRelationship(modelV2, relId)!.target.element).toEqual(class1Id);
expect(findRelationship(model, relId)?.source.element).toEqual(class2Id);
expect(findRelationship(modelV2, relId)?.target.element).toEqual(class1Id);
expect(findRelationship(model, 'non-existing-id')).toBeUndefined();
expect(findRelationship(modelV2, 'non-existing-id')).toBeUndefined();
});
Expand Down

0 comments on commit 828a0b2

Please sign in to comment.