Skip to content

Commit

Permalink
round size to integer before comparison (#1259)
Browse files Browse the repository at this point in the history
  • Loading branch information
elalish committed Jun 9, 2020
1 parent 6159887 commit ff463df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/model-viewer/src/test/model-viewer-base-spec.ts
Expand Up @@ -35,8 +35,8 @@ const expectBlobDimensions =
img.src = url;
});

expect(img.width).to.be.equal(width);
expect(img.height).to.be.equal(height);
expect(img.width).to.be.equal(Math.round(width));
expect(img.height).to.be.equal(Math.round(height));
};

suite('ModelViewerElementBase', () => {
Expand Down

0 comments on commit ff463df

Please sign in to comment.