Skip to content

Commit fad47be

Browse files
committed
Use toBeNear matcher for comparison
1 parent 2c0a685 commit fad47be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/minimap-element-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe('MinimapElement', () => {
177177
it('takes the height of the editor', () => {
178178
expect(minimapElement.offsetHeight).toEqual(editorElement.clientHeight)
179179

180-
expect(minimapElement.offsetWidth).toBeCloseTo(editorElement.clientWidth / 10, 0)
180+
expect(minimapElement.offsetWidth).toBeNear(editorElement.clientWidth / 10, 1)
181181
})
182182

183183
it('knows when attached to a text editor', () => {

0 commit comments

Comments
 (0)