mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 22:37:04 +08:00
refactor(editor): remove AbstractEditor type and feature flags in test (#10308)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import '../declare-test-window.js';
|
||||
|
||||
import type {
|
||||
BlockSuiteFlags,
|
||||
DatabaseBlockModel,
|
||||
ListType,
|
||||
RichText,
|
||||
@@ -111,7 +110,6 @@ export function expectConsoleMessage(
|
||||
}
|
||||
|
||||
export type PlaygroundRoomOptions = {
|
||||
flags?: Partial<BlockSuiteFlags>;
|
||||
room?: string;
|
||||
blobSource?: ('idb' | 'mock')[];
|
||||
noInit?: boolean;
|
||||
@@ -128,11 +126,6 @@ export async function enterPlaygroundRoom(
|
||||
}
|
||||
url.searchParams.set('room', room);
|
||||
url.searchParams.set('blobSource', blobSource?.join(',') || 'idb');
|
||||
for (const [key, value] of Object.entries(ops?.flags || {})) {
|
||||
if (value) {
|
||||
url.searchParams.append('flag', key);
|
||||
}
|
||||
}
|
||||
if (ops?.noInit) {
|
||||
url.searchParams.set('noInit', 'true');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user