Skip to content

Commit

Permalink
test: chore
Browse files Browse the repository at this point in the history
  • Loading branch information
collierrgbsitisfise committed Sep 30, 2024
1 parent af24a59 commit 85f5ff0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/lexical-react/src/__tests__/unit/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,8 @@ export class Client implements Provider {

this.awareness = {
getLocalState: () => this._awarenessState,
getStates: <T extends Record<string, unknown>>() => {
const baseState = this._awarenessState ?? {};
const extendedState = {...baseState} as UserState & T;
return new Map([[0, extendedState]]);
},
getStates: <T extends Record<string, unknown>>() =>
new Map([[0, this._awarenessState!]]) as Map<number, UserState & T>,
off: () => {
// TODO
},
Expand Down

0 comments on commit 85f5ff0

Please sign in to comment.