1 | import * as React from 'react';
|
2 | import ScaleControl from '../scale-control';
|
3 | import { mountWithMap, getMapMock } from '../jest/util';
|
4 |
|
5 | describe('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 | });
|