Skip to content

Commit afa9309

Browse files
committed
【fix】UT review by xiongjj
1 parent 7251223 commit afa9309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/mapboxgl/overlay/HeatMapLayerSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ describe('mapboxgl_HeatMapLayer', () => {
259259
testDiv.style.width = '1000px'
260260
map.resize();
261261
setTimeout(() => {
262-
expect(heatLayer.rootCanvas.width).toBeGreaterThan(1000);
262+
expect(heatLayer.rootCanvas.width).toBe(1000 * window.devicePixelRatio);
263263
done();
264264
}, 2000);
265265
});

0 commit comments

Comments
 (0)