Skip to content

Commit c86d4ad

Browse files
Merge branch 'master' into vega_requests_names
2 parents 12c7c1d + 35d4bc6 commit c86d4ad

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ describe('GetCsvReportPanelAction', () => {
1818

1919
beforeAll(() => {
2020
if (typeof window.URL.revokeObjectURL === 'undefined') {
21-
Object.defineProperty(window.URL, 'revokeObjectURL', { value: () => {} });
21+
Object.defineProperty(window.URL, 'revokeObjectURL', {
22+
configurable: true,
23+
writable: true,
24+
value: () => {},
25+
});
2226
}
2327
});
2428

x-pack/plugins/security_solution/public/detections/components/value_lists_management_modal/auto_download.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { AutoDownload } from './auto_download';
1212

1313
describe('AutoDownload', () => {
1414
beforeEach(() => {
15-
// our DOM environment lacks this function that our component needs
1615
Object.defineProperty(globalNode.window.URL, 'revokeObjectURL', {
16+
configurable: true,
1717
writable: true,
1818
value: jest.fn(),
1919
});

0 commit comments

Comments
 (0)