Skip to content

Commit

Permalink
[lexical-utils] ci: fix typing to fix integrity test (#6019)
Browse files Browse the repository at this point in the history
  • Loading branch information
potatowagon authored May 3, 2024
1 parent 0b9ef95 commit 0fb96a6
Showing 1 changed file with 3 additions and 3 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 @@ -224,10 +224,10 @@ describe('LexicalNodeHelpers tests', () => {
await editor.update(() => {
const paragraph = $getNodeByKey(paragraphKey);

expect($dfs(paragraph)).toEqual([
expect($dfs(paragraph ?? undefined)).toEqual([
{
depth: 1,
node: paragraph.getLatest(),
node: paragraph?.getLatest(),
},
]);
});
Expand Down

0 comments on commit 0fb96a6

Please sign in to comment.