mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Stub deprecation warning in AngularLocationWrapper (#45319)
This commit is contained in:
parent
820a70f49a
commit
689df761e6
@ -1,6 +1,13 @@
|
||||
import { AngularLocationWrapper } from './AngularLocationWrapper';
|
||||
import { HistoryWrapper, locationService, setLocationService } from '@grafana/runtime';
|
||||
|
||||
// The methods in this file are deprecated
|
||||
// Stub the deprecation warning here to prevent polluting the test output
|
||||
jest.mock('@grafana/data', () => ({
|
||||
...jest.requireActual('@grafana/data'),
|
||||
deprecationWarning: () => {},
|
||||
}));
|
||||
|
||||
describe('AngularLocationWrapper', () => {
|
||||
const { location } = window;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user