Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
plugins
/
panel
/
traces
/
File Content:
TracesPanel.test.tsx
import { render, screen } from '@testing-library/react'; import React from 'react'; import { LoadingState, PanelProps } from '@grafana/data'; import { TracesPanel } from './TracesPanel'; describe('TracesPanel', () => { it('shows no data message when no data supplied', async () => { const props = { data: { error: undefined, series: [], state: LoadingState.Done, }, } as unknown as PanelProps; render(<TracesPanel {...props} />); await screen.findByText('No data found in response'); }); });
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
img
---
0755
README.md
472 bytes
0644
TracesPanel.test.tsx
553 bytes
0644
TracesPanel.tsx
1493 bytes
0644
module.tsx
144 bytes
0644
plugin.json
264 bytes
0644
N4ST4R_ID | Naxtarrr