Chore: Stub deprecation warning in AngularLocationWrapper (#45319)

This commit is contained in:
Ashley Harrison 2022-02-11 16:34:16 +00:00 committed by GitHub
parent 820a70f49a
commit 689df761e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;