UNPKG

540 BTypeScriptView Raw
1import * as React from 'react';
2import ScaleControl from '../scale-control';
3import { mountWithMap, getMapMock } from '../jest/util';
4
5describe('ScaleControl', () => {
6 it.skip('should render the component', () => {
7 const wrapper = mountWithMap(
8 <ScaleControl />,
9 getMapMock({
10 _canvas: {
11 clientwidth: 900
12 },
13 getBounds: jest.fn().mockReturnValue({
14 _ne: { lng: 0, lat: 0 },
15 _sw: { lng: 0, lat: 0 }
16 })
17 })
18 );
19
20 expect(wrapper).toBeDefined();
21 });
22});