Skip to content

Commit

Permalink
review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dariaterekhova-actionengine committed Dec 12, 2024
1 parent c6f3027 commit 435f8ac
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
6 changes: 6 additions & 0 deletions src/components/bookmarks-panel/bookmarks-panel.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jest.mock("../../utils/hooks/layout");

const dragAndDropText = "Drag and drop your json file here";

Object.defineProperty(globalThis, "crypto", {
value: {
randomUUID: () => "",
},
});

const TEST_BOOKMARKS = [
{
id: "testId1",
Expand Down
6 changes: 0 additions & 6 deletions src/components/bookmarks-panel/bookmarks-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ enum PopoverType {
none,
}

Object.defineProperty(globalThis, "crypto", {
value: {
randomUUID: () => "",
},
});

const Container = styled.div<LayoutProps>`
position: absolute;
background: ${({ theme }) => theme.colors.mainCanvasColor};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ import "@testing-library/jest-dom";
const onInsertMock = jest.fn();
const onCancelMock = jest.fn();

Object.defineProperty(globalThis, "crypto", {
value: {
randomUUID: () => "",
},
});


Check failure on line 19 in src/components/layers-panel/insert-panel/insert-panel.spec.tsx

View workflow job for this annotation

GitHub Actions / Linter

More than 1 blank line not allowed
const callRender = (
renderFunc,
props = {},
Expand Down
6 changes: 0 additions & 6 deletions src/components/layers-panel/insert-panel/insert-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ import {
import { UploadPanel } from "../../upload-panel/upload-panel";
import { getLayerUrl } from "../../../utils/layer-utils";

Object.defineProperty(globalThis, "crypto", {
value: {
randomUUID: () => "",
},
});

const NO_NAME_ERROR = "Please enter name";
const INVALID_URL_ERROR = "Invalid URL";

Expand Down

0 comments on commit 435f8ac

Please sign in to comment.