Skip to content

Commit

Permalink
Modified the test of getBody() to reflect that it should
Browse files Browse the repository at this point in the history
always return a AnnotationBody[] array
  • Loading branch information
vincentmarchetti committed Feb 20, 2024
1 parent f302e99 commit 670d651
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/tests/model_origin.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ describe('model_origin', function() {
});

it('and body is an AnnotationBody', function(){
body = annotation.getBody();
if (Array.isArray(body)) body = body[0];

var bodies = annotation.getBody();
expect(Array.isArray(bodies));
bodies.should.have.lengthOf(1);
body = bodies[0];
body.getType().should.equal(ExternalResourceType.MODEL);
});

Expand Down

0 comments on commit 670d651

Please sign in to comment.