Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Sep 12, 2023
1 parent 6438817 commit 63d30ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/input.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 63d30ae

Please sign in to comment.