Skip to content

Commit 9af3d4f

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 442f97d commit 9af3d4f

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

packages/cursorless-engine/src/testCaseRecorder/TestCaseRecorder.ts

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -373,32 +373,30 @@ export class TestCaseRecorder {
373373
await this.writeToFile(outPath, fixture);
374374

375375
if (!this.isSilent) {
376-
let message = `"${this.testCase!.command.spokenForm}" Cursorless test case saved.`;
376+
let message = `"${
377+
this.testCase!.command.spokenForm
378+
}" Cursorless test case saved.`;
377379

378380
if (this.testCase!.spokenFormError != null) {
379381
message += ` Spoken form error: ${this.testCase!.spokenFormError}`;
380382
}
381383

382-
showInfo(
383-
ide().messages,
384-
"testCaseSaved",
385-
message,
386-
"View",
387-
"Delete",
388-
).then(async (action) => {
389-
if (action === "View") {
390-
await ide().openTextDocument(outPath);
391-
}
392-
if (action === "Delete") {
393-
await fs.unlink(outPath, (err) => {
394-
if (err) {
395-
console.log("failed to delete ${outPath}: ${err}");
396-
} else {
397-
console.log("deleted ${outPath}");
398-
}
399-
});
400-
}
401-
});
384+
showInfo(ide().messages, "testCaseSaved", message, "View", "Delete").then(
385+
async (action) => {
386+
if (action === "View") {
387+
await ide().openTextDocument(outPath);
388+
}
389+
if (action === "Delete") {
390+
await fs.unlink(outPath, (err) => {
391+
if (err) {
392+
console.log("failed to delete ${outPath}: ${err}");
393+
} else {
394+
console.log("deleted ${outPath}");
395+
}
396+
});
397+
}
398+
},
399+
);
402400
}
403401

404402
this.testCase = null;

0 commit comments

Comments
 (0)