feat: support pasting file contents & always prefer system clip (#3257)

This commit is contained in:
David Luzar 2021-03-20 20:20:47 +01:00 committed by GitHub
parent 13d9374cde
commit 94ad8eaa19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 41 additions and 28 deletions

View file

@ -6,6 +6,7 @@ import { API } from "./helpers/api";
import { getDefaultAppState } from "../appState";
import { waitFor } from "@testing-library/react";
import { createUndoAction, createRedoAction } from "../actions/actionHistory";
import { EXPORT_DATA_TYPES } from "../constants";
const { h } = window;
@ -76,7 +77,7 @@ describe("history", () => {
new Blob(
[
JSON.stringify({
type: "excalidraw",
type: EXPORT_DATA_TYPES.excalidraw,
appState: {
...getDefaultAppState(),
viewBackgroundColor: "#000",