Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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