mirror of
https://github.com/codex-team/editor.js
synced 2024-06-26 01:10:19 +02:00
Fix flipper tests
This commit is contained in:
parent
53e4da0bb1
commit
49382e6076
|
@ -1,4 +1,4 @@
|
|||
import { PopoverItem } from '../../../../types/index.js';
|
||||
import { PopoverItemParams } from '../../../../types/index.js';
|
||||
|
||||
/**
|
||||
* Mock of some Block Tool
|
||||
|
@ -26,14 +26,24 @@ class SomePlugin {
|
|||
/**
|
||||
* Used to display our tool in the Toolbox
|
||||
*/
|
||||
public static get toolbox(): PopoverItem {
|
||||
public static get toolbox(): PopoverItemParams {
|
||||
return {
|
||||
type: 'default',
|
||||
icon: '₷',
|
||||
title: 'Some tool',
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
onActivate: (): void => {},
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Extracts data from the plugin's UI
|
||||
*/
|
||||
public save(): {data: string} {
|
||||
return {
|
||||
data: '123',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
describe('Flipper', () => {
|
||||
|
|
Loading…
Reference in a new issue