Explore: Change service in hook, un-skip test (#85894)

Use different service, un-skip test
This commit is contained in:
Kristina
2024-04-15 08:11:21 -05:00
committed by GitHub
parent ad3abfc695
commit 0034e9f044
2 changed files with 3 additions and 3 deletions

View File

@@ -1,9 +1,9 @@
import { useEffect } from 'react';
import { getDataSourceSrv } from '@grafana/runtime';
import { Branding } from 'app/core/components/Branding/Branding';
import { useGrafana } from 'app/core/context/GrafanaContext';
import { useNavModel } from 'app/core/hooks/useNavModel';
import { getDatasourceSrv } from 'app/features/plugins/datasource_srv';
import { ExploreQueryParams } from 'app/types';
import { isFulfilled, hasKey } from './utils';
@@ -40,7 +40,7 @@ export function useExplorePageTitle(params: ExploreQueryParams) {
return Promise.reject();
}
return getDatasourceSrv().get(pane.datasource);
return getDataSourceSrv().get(pane.datasource);
})
)
.then((results) => results.filter(isFulfilled).map((result) => result.value))

View File

@@ -119,7 +119,7 @@ describe('Explore: Query History', () => {
});
});
it.skip('adds recently added query if the query history panel is already open', async () => {
it('adds recently added query if the query history panel is already open', async () => {
const urlParams = {
left: serializeStateToUrlParam({
datasource: 'loki',