Skip to content

Commit

Permalink
use GetElement instead of tryGetElement
Browse files Browse the repository at this point in the history
  • Loading branch information
derbynn committed Oct 7, 2024
1 parent e6a4fc6 commit f324365
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2718,10 +2718,10 @@ describe("IModelTransformer", () => {

// verify that deleted element in target is added back - redundant check for explicitness
const sourceElementJSON = sourceDb.elements
.tryGetElement<Subject>(targetSubjectId1!)
.getElement<Subject>(targetSubjectId1!)
?.toJSON();
const deletedElementInTargetJSON = targetDb.elements
.tryGetElement<Subject>(targetSubjectId1!)
.getElement<Subject>(targetSubjectId1!)
?.toJSON();
expect(sourceElementJSON).to.be.deep.equal(deletedElementInTargetJSON);

Expand Down

0 comments on commit f324365

Please sign in to comment.