Skip to content

Commit

Permalink
Merge branch '7.x' into backport/7.x/pr-72473
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine authored Jul 29, 2020
2 parents c682374 + 4ee5497 commit 881b95f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ describe('GetCsvReportPanelAction', () => {

beforeAll(() => {
if (typeof window.URL.revokeObjectURL === 'undefined') {
Object.defineProperty(window.URL, 'revokeObjectURL', { value: () => {} });
Object.defineProperty(window.URL, 'revokeObjectURL', {
configurable: true,
writable: true,
value: () => {},
});
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { AutoDownload } from './auto_download';

describe('AutoDownload', () => {
beforeEach(() => {
// our DOM environment lacks this function that our component needs
Object.defineProperty(globalNode.window.URL, 'revokeObjectURL', {
configurable: true,
writable: true,
value: jest.fn(),
});
Expand Down

0 comments on commit 881b95f

Please sign in to comment.