diff --git a/packages/react-hotkeys/src/__tests__/HotkeysProvider.test.tsx b/packages/react-hotkeys/src/__tests__/HotkeysProvider.test.tsx index 6f35ef8fca..15da2334f9 100644 --- a/packages/react-hotkeys/src/__tests__/HotkeysProvider.test.tsx +++ b/packages/react-hotkeys/src/__tests__/HotkeysProvider.test.tsx @@ -63,7 +63,7 @@ it('should return multiple scopes if different scopes are activated', () => { result.current.enableScope('bar'); }); - expect(result.current.activeScopes).toEqual(['foo', 'bar']); + expect(result.current.activeScopes).toEqual(['bar', 'foo']); }); it('should deactivate scope by calling disableScope', () => { @@ -79,7 +79,7 @@ it('should deactivate scope by calling disableScope', () => { result.current.enableScope('bar'); }); - expect(result.current.activeScopes).toEqual(['foo', 'bar']); + expect(result.current.activeScopes).toEqual(['bar', 'foo']); act(() => { result.current.disableScope('foo'); @@ -237,7 +237,7 @@ it('should have no active scopes after deactivating all current scopes', () => { act(() => { result.current.enableScope('bar'); }); - expect(result.current.activeScopes).toEqual(['foo', 'bar']); + expect(result.current.activeScopes).toEqual(['bar', 'foo']); act(() => { result.current.disableScope('foo'); }); diff --git a/packages/slate/src/interfaces/editor/TEditor.ts b/packages/slate/src/interfaces/editor/TEditor.ts index 9e9a4d9e56..8a318dc40e 100644 --- a/packages/slate/src/interfaces/editor/TEditor.ts +++ b/packages/slate/src/interfaces/editor/TEditor.ts @@ -39,10 +39,6 @@ export type TEditor = { Editor, { id: any; - normalizeNode: ( - entry: TNodeEntry, - options?: { operation?: TOperation } - ) => void; apply: (operation: TOperation) => void; children: V; getDirtyPaths: (operation: TOperation) => Path[]; @@ -52,6 +48,11 @@ export type TEditor = { isInline: (element: N) => boolean; isVoid: (element: N) => boolean; markableVoid: (element: N) => boolean; + // eslint-disable-next-line perfectionist/sort-object-types + normalizeNode: ( + entry: TNodeEntry, + options?: { operation?: TOperation } + ) => void; marks: Record | null; operations: TOperation[]; }