Update LokiQueryCodeEditor test title (#53181)

* Update LokiQueryCodeEditor test title

* Update public/app/plugins/datasource/loki/querybuilder/components/LokiQueryCodeEditor.test.tsx
This commit is contained in:
ismail simsek 2022-08-03 09:59:02 +02:00 committed by GitHub
parent edbaaf495b
commit 920ee16b54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ describe('LokiQueryCodeEditor', () => {
expect(screen.getByText(EXPLAIN_LABEL_FILTER_CONTENT)).toBeInTheDocument();
});
it('does not shows explain section when showExplain is true', () => {
it('does not show explain section when showExplain is false', () => {
const props = createDefaultProps();
props.datasource.metadataRequest = jest.fn().mockResolvedValue([]);
render(<LokiQueryCodeEditor {...props} query={defaultQuery} />);