|
1 |
| -// import { AppEvents, LoadingState, PanelProps } from '@grafana/data'; |
| 1 | +// import { AppEvents, DefaultTimeZone, EventBusSrv, getDefaultTimeRange, LoadingState, PanelProps } from '@grafana/data'; |
2 | 2 | // import { getBackendSrv, getDataSourceSrv, SystemJS } from '@grafana/runtime';
|
3 | 3 | // import { Button, HorizontalGroup, VerticalGroup } from '@grafana/ui';
|
4 | 4 | // import { shallow } from 'enzyme';
|
5 |
| -// import React from 'react'; |
6 | 5 | // import { ButtonOptions, Options } from 'types';
|
7 | 6 | // import { ButtonPanel } from './buttonPanel';
|
8 | 7 | // jest.mock('@grafana/runtime');
|
9 | 8 |
|
| 9 | +test('fixme', () => { |
| 10 | + // FIXME: there seems to be a problem with the package @grafana/data: |
| 11 | + // as soon as you try to import anything from the package, the following error is thrown: |
| 12 | + // LanguageProvider cannot reassign to a class (same with DataSourceApi) |
| 13 | +}); |
| 14 | + |
10 | 15 | // describe('button panel', () => {
|
11 | 16 | // const status = 200;
|
12 | 17 | // const statusError = 500;
|
|
15 | 20 |
|
16 | 21 | // beforeEach(() => {
|
17 | 22 | // defaultProps = {
|
| 23 | +// title: 'title', |
| 24 | +// eventBus: new EventBusSrv(), |
18 | 25 | // id: 1,
|
19 | 26 | // data: {
|
20 |
| -// timeRange: Defa, |
| 27 | +// timeRange: getDefaultTimeRange(), |
21 | 28 | // state: LoadingState.Done,
|
22 | 29 | // series: [],
|
23 | 30 | // },
|
|
30 | 37 | // onOptionsChange: () => {},
|
31 | 38 | // renderCounter: 1,
|
32 | 39 | // replaceVariables: () => '{}',
|
33 |
| -// timeRange: DefaultTimeRange, |
| 40 | +// timeRange: getDefaultTimeRange(), |
34 | 41 | // timeZone: DefaultTimeZone,
|
35 | 42 | // options: {
|
36 | 43 | // buttons: [],
|
|
0 commit comments