Skip to content

Commit

Permalink
fixup! Replace console.foo with helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrahms committed Feb 20, 2024
1 parent e1aa441 commit 94db248
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/commands/__tests__/__snapshots__/ls.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`ls when error should print1error message 1`] = `
exports[`ls when error should print error message 1`] = `
{
"error": "p0 ls
Expand All @@ -16,7 +16,7 @@ Unknown argument: foo",
}
`;
exports[`ls when valid ls command should print1list response 1`] = `
exports[`ls when valid ls command should print list response 1`] = `
[
[
"instance-1",
Expand All @@ -27,7 +27,7 @@ exports[`ls when valid ls command should print1list response 1`] = `
]
`;
exports[`ls when valid ls command should print1list response 2`] = `
exports[`ls when valid ls command should print list response 2`] = `
[
[
"Showing destinations:",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/__tests__/__snapshots__/request.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`request when error should print1error message 1`] = `
exports[`request when error should print error message 1`] = `
{
"error": "p0 request
Expand Down
4 changes: 2 additions & 2 deletions src/commands/__tests__/ls.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe("ls", () => {
});
});

it("should print1list response", async () => {
it("should print list response", async () => {
await lsCommand(yargs).parse(command);
expect(mockPrint1.mock.calls).toMatchSnapshot();
expect(mockPrint2.mock.calls).toMatchSnapshot();
Expand All @@ -50,7 +50,7 @@ Unknown argument: foo`,
});
});

it("should print1error message", async () => {
it("should print error message", async () => {
let error: any;
try {
await lsCommand(yargs)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/__tests__/request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Unknown argument: foo`,
});
});

it("should print1error message", async () => {
it("should print error message", async () => {
let error: any;
try {
await requestCommand(yargs)
Expand Down

0 comments on commit 94db248

Please sign in to comment.