Skip to content

Commit

Permalink
fix type issue from #5977
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed May 2, 2024
1 parent 29a43de commit c574eb6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ describe('LexicalNodeHelpers tests', () => {
test('DFS of empty ParagraphNode returns only itself', async () => {
const editor: LexicalEditor = testEnv.editor;

let paragraphKey;
let paragraphKey: string;

await editor.update(() => {
const root = $getRoot();
Expand All @@ -222,7 +222,7 @@ describe('LexicalNodeHelpers tests', () => {
root.append(paragraph, paragraph2);
});
await editor.update(() => {
const paragraph = $getNodeByKey(paragraphKey);
const paragraph = $getNodeByKey(paragraphKey)!;

expect($dfs(paragraph)).toEqual([
{
Expand Down

0 comments on commit c574eb6

Please sign in to comment.