-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(format painter menu): adjusted format painter menu display o…
…rder
- Loading branch information
Showing
3 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
packages/basic-modules/__tests__/format-painter/format-painter-menu.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* @description format painter menu test | ||
* @author CodePencil | ||
*/ | ||
|
||
import { Editor } from 'slate' | ||
import FormatPainter from '../../src/modules/format-painter/menu/FormatPainter' | ||
import createEditor from '../../../../tests/utils/create-editor' | ||
|
||
describe('format painter menu', () => { | ||
let editor: any | ||
let startLocation: any | ||
|
||
const menus = [ | ||
{ | ||
mark: 'formatPainter', | ||
menu: new FormatPainter(), | ||
}, | ||
] | ||
|
||
beforeEach(() => { | ||
editor = createEditor() | ||
startLocation = Editor.start(editor, []) | ||
}) | ||
|
||
afterEach(() => { | ||
editor = null | ||
startLocation = null | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters