Skip to content

Commit

Permalink
Merge branch 'master' into vega_requests_names
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine authored Jul 29, 2020
2 parents 12c7c1d + 35d4bc6 commit c86d4ad
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 c86d4ad

Please sign in to comment.