Chore: Stub deprecation warning in AngularLocationWrapper (#45319)

pull/45337/head
Ashley Harrison 3 years ago committed by GitHub
parent 820a70f49a
commit 689df761e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      public/app/angular/AngularLocationWrapper.test.ts

@ -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…
Cancel
Save