mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Urls: Parsing key values will not convert to numbers (#33982)
* Urls: Parsing key values will not convert to numbers * Tests: fixes broken tests * Tests: fixes broken test * Tests: fixes broken test * Chore: forcing drone to rebuild
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { render, screen, fireEvent, waitFor } from '@testing-library/react';
|
||||
import { fireEvent, render, screen, waitFor } from '@testing-library/react';
|
||||
import Wrapper from './Wrapper';
|
||||
import { configureStore } from '../../store/configureStore';
|
||||
import { Provider } from 'react-redux';
|
||||
@@ -52,7 +52,7 @@ describe('Wrapper', () => {
|
||||
|
||||
// At this point url should be initialised to some defaults
|
||||
expect(locationService.getSearchObject()).toEqual({
|
||||
orgId: 1,
|
||||
orgId: '1',
|
||||
left: JSON.stringify(['now-1h', 'now', 'loki', {}]),
|
||||
});
|
||||
expect(datasources.loki.query).not.toBeCalled();
|
||||
@@ -74,7 +74,7 @@ describe('Wrapper', () => {
|
||||
|
||||
// We did not change the url
|
||||
expect(locationService.getSearchObject()).toEqual({
|
||||
orgId: 1,
|
||||
orgId: '1',
|
||||
...query,
|
||||
});
|
||||
|
||||
@@ -141,7 +141,7 @@ describe('Wrapper', () => {
|
||||
await screen.findByText('elastic Editor input:');
|
||||
expect(datasources.elastic.query).not.toBeCalled();
|
||||
expect(locationService.getSearchObject()).toEqual({
|
||||
orgId: 1,
|
||||
orgId: '1',
|
||||
left: JSON.stringify(['now-1h', 'now', 'elastic', {}]),
|
||||
});
|
||||
});
|
||||
@@ -183,7 +183,7 @@ describe('Wrapper', () => {
|
||||
|
||||
// We did not change the url
|
||||
expect(locationService.getSearchObject()).toEqual({
|
||||
orgId: 1,
|
||||
orgId: '1',
|
||||
...query,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user