Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Rain-Zheng committed Nov 7, 2024
1 parent e01f403 commit afe0941
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ describe('CopyPastePlugin |', () => {

describe('shouldPreventDefaultPaste', () => {
it('should not prevent default for empty clipboard data', () => {
const clipboardData = <ClipboardData>(<any>{
const clipboardData = <DataTransfer>(<any>{
items: null
});
const editor = <IEditor>(<any>{});
Expand All @@ -1403,7 +1403,7 @@ describe('CopyPastePlugin |', () => {
});

it('should prevent default on non-Android platforms', () => {
const clipboardData = <ClipboardData>(<any>{
const clipboardData = <DataTransfer>(<any>{
items: [{ type: '', kind: 'file' }]
});
const editor = <IEditor>(<any>{
Expand All @@ -1413,10 +1413,10 @@ describe('CopyPastePlugin |', () => {
});

it('should prevent default for text or image clipboard data on Android platform', () => {
const textClipboardData = <ClipboardData>(<any>{
const textClipboardData = <DataTransfer>(<any>{
items: [{ type: 'text/plain', kind: 'string' }]
});
const imageClipboardData = <ClipboardData>(<any>{
const imageClipboardData = <DataTransfer>(<any>{
items: [{ type: 'image/png', kind: 'file' }]
});
const editor = <IEditor>(<any>{
Expand All @@ -1427,7 +1427,7 @@ describe('CopyPastePlugin |', () => {
});

it('should not prevent default for file-only clipboard data on Android platform', () => {
const clipboardData = <ClipboardData>(<any>{
const clipboardData = <DataTransfer>(<any>{
items: [{ type: '', kind: 'file' }]
});
const editor = <IEditor>(<any>{
Expand Down

0 comments on commit afe0941

Please sign in to comment.