Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored May 27, 2024
1 parent 92cc420 commit 55dd80d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
import { ExcludableSnapshotField, ReadOnlyHatMap, SpyIDE, TestCaseSnapshot, extractTargetedMarks, marksToPlainObject, storedTargetKeys } from "@cursorless/common";
import {
ExcludableSnapshotField,
ReadOnlyHatMap,
SpyIDE,
TestCaseSnapshot,
extractTargetedMarks,
marksToPlainObject,
storedTargetKeys,
} from "@cursorless/common";
import { TestHelpers } from "@cursorless/vscode-common";

export async function getResultStateForComparison(
finalState: TestCaseSnapshot | undefined,
readableHatMap: ReadOnlyHatMap,
spyIde: SpyIDE,
takeSnapshot: TestHelpers["takeSnapshot"]
takeSnapshot: TestHelpers["takeSnapshot"],
) {
const excludeFields: ExcludableSnapshotField[] = [];

const marks = finalState?.marks == null
? undefined
: marksToPlainObject(
extractTargetedMarks(Object.keys(finalState.marks), readableHatMap)
);
const marks =
finalState?.marks == null
? undefined
: marksToPlainObject(
extractTargetedMarks(Object.keys(finalState.marks), readableHatMap),
);

if (finalState?.clipboard == null) {
excludeFields.push("clipboard");
Expand All @@ -35,7 +44,7 @@ export async function getResultStateForComparison(
spyIde,
marks,
// FIXME: Stop overriding the clipboard once we have #559
true
true,
);

return resultState;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {
ActiveTutorialNoErrorsState,
} from "@cursorless/common";
import { ActiveTutorialNoErrorsState } from "@cursorless/common";
import { type FunctionComponent } from "react";
import { Command } from "./Command";

Expand Down

0 comments on commit 55dd80d

Please sign in to comment.