mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
chore: migrate blocksuite test (#9222)
This commit is contained in:
15
blocksuite/tests-legacy/utils/multiple-editor.ts
Normal file
15
blocksuite/tests-legacy/utils/multiple-editor.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import process from 'node:process';
|
||||
|
||||
const editorIndex = {
|
||||
0: 0,
|
||||
1: 1,
|
||||
}[process.env.MULTIPLE_EDITOR_INDEX ?? ''];
|
||||
export const scope =
|
||||
editorIndex == null
|
||||
? undefined
|
||||
: editorIndex === 0
|
||||
? 'FIRST | '
|
||||
: 'SECOND | ';
|
||||
export const multiEditor = scope != null;
|
||||
|
||||
export const currentEditorIndex = editorIndex ?? 0;
|
||||
Reference in New Issue
Block a user