Skip to content

Commit

Permalink
Fix return value in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Feb 18, 2024
1 parent 71303d6 commit 0de126a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ async function runTest(file: string, spyIde: SpyIDE) {
let fallback: Fallback | undefined;

try {
const commandReturnValue = await runCursorlessCommand({
returnValue = await runCursorlessCommand({
...fixture.command,
usePrePhraseSnapshot,
});
if (useFallback(fixture.command)) {
const commandResponse = commandReturnValue as CommandResponse;
const commandResponse = returnValue as CommandResponse;
if ("returnValue" in commandResponse) {
returnValue = commandResponse.returnValue;
}
Expand Down

0 comments on commit 0de126a

Please sign in to comment.