Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelle committed May 21, 2024
1 parent 1e2dd61 commit df3571e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/excalidraw/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { AppProps } from "./types";
import type { NormalizedZoomValue } from "./types";
import type { AppProps, NormalizedZoomValue } from "./types";
import type { ExcalidrawElement, FontFamilyValues } from "./element/types";
export const isDarwin = /Mac|iPod|iPhone|iPad/.test(navigator.platform);
export const isWindows = /^Win/.test(navigator.platform);
Expand Down
8 changes: 6 additions & 2 deletions packages/excalidraw/tests/history.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ import { getDefaultAppState } from "../appState";
import { fireEvent, queryByTestId, waitFor } from "@testing-library/react";
import { createUndoAction, createRedoAction } from "../actions/actionHistory";
import { actionToggleViewMode } from "../actions/actionToggleViewMode";
import { EXPORT_DATA_TYPES, MIME_TYPES } from "../constants";
import {
COLOR_CHARCOAL_BLACK,
EXPORT_DATA_TYPES,
MIME_TYPES,
} from "../constants";
import type { AppState, ExcalidrawImperativeAPI } from "../types";
import { arrayToMap, resolvablePromise } from "../utils";
import {
Expand Down Expand Up @@ -71,7 +75,7 @@ const checkpoint = (name: string) => {
const renderStaticScene = vi.spyOn(StaticScene, "renderStaticScene");

const transparent = COLOR_PALETTE.transparent;
const black = COLOR_PALETTE.black;
const black = COLOR_CHARCOAL_BLACK;
const red = COLOR_PALETTE.red[DEFAULT_ELEMENT_BACKGROUND_COLOR_INDEX];
const blue = COLOR_PALETTE.blue[DEFAULT_ELEMENT_BACKGROUND_COLOR_INDEX];
const yellow = COLOR_PALETTE.yellow[DEFAULT_ELEMENT_BACKGROUND_COLOR_INDEX];
Expand Down

0 comments on commit df3571e

Please sign in to comment.