From 63d30aeca1ddd8964d925a5433a65dc82d974d8c Mon Sep 17 00:00:00 2001 From: ocavue Date: Tue, 12 Sep 2023 17:38:32 +0800 Subject: [PATCH] fix lint --- test/input.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/input.test.ts b/test/input.test.ts index 7ca8eba8..87b91c72 100644 --- a/test/input.test.ts +++ b/test/input.test.ts @@ -19,16 +19,16 @@ function test( result: TaggedNode | null | undefined, ) { let state = EditorState.create({ doc, selection: selectionFor(doc) }); - let view = new EditorView(document.createElement('div'), { state }); - let ran = command(state, (tr) => (state = state.apply(tr)), view); + const view = new EditorView(document.createElement('div'), { state }); + const ran = command(state, (tr) => (state = state.apply(tr)), view); if (result == null) { expect(ran).toBe(false); } else { - let expected = { + const expected = { doc: result.toJSON(), selection: selectionFor(result).toJSON(), }; - let actual = state.toJSON(); + const actual = state.toJSON(); expect(actual).toEqual(expected); } }