Skip to content

Commit

Permalink
fix(cli): remove extra spaces after arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
hasundue committed Aug 2, 2024
1 parent e7be980 commit c555d6a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
52 changes: 26 additions & 26 deletions cli/main_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ describe("CLI", () => {
assertEquals(
stdout,
dedent`
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1 (^0.3.0 β†’ ^0.4.0)
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1 (^0.3.0 β†’ ^0.4.0)
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
`,
);
assertEquals(
Expand All @@ -54,9 +54,9 @@ describe("CLI", () => {
assertEquals(
stdout,
dedent`
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1 (^0.3.0 β†’ ^0.4.0)
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1 (^0.3.0 β†’ ^0.4.0)
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
`,
);
assertEquals(
Expand All @@ -74,9 +74,9 @@ describe("CLI", () => {
assertEquals(
stdout,
dedent`
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1 (^0.3.0 β†’ ^0.4.0)
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1 (^0.3.0 β†’ ^0.4.0)
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
`,
);
assertEquals(
Expand All @@ -96,9 +96,9 @@ describe("CLI", () => {
assertEquals(
stdout,
dedent`
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1 (^0.3.0 β†’ ^0.4.0)
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1 (^0.3.0 β†’ ^0.4.0)
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
`,
);
});
Expand All @@ -108,8 +108,8 @@ describe("CLI", () => {
assertEquals(
stdout,
dedent`
πŸ“¦ @conventional-commits/parser ^0.3.0 β†’ ^0.4.0
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
πŸ“¦ @conventional-commits/parser ^0.3.0 β†’ ^0.4.0
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
`,
);
});
Expand All @@ -119,7 +119,7 @@ describe("CLI", () => {
assertEquals(
stdout,
dedent`
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
`,
);
});
Expand All @@ -129,8 +129,8 @@ describe("CLI", () => {
assertEquals(
stdout,
dedent`
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1 (^0.3.0 β†’ ^0.4.0)
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1 (^0.3.0 β†’ ^0.4.0)
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
`,
);
});
Expand All @@ -140,9 +140,9 @@ describe("CLI", () => {
assertEquals(
stdout,
dedent`
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
`,
);
});
Expand All @@ -152,9 +152,9 @@ describe("CLI", () => {
assertEquals(
stdout,
dedent`
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
`,
);
});
Expand All @@ -164,9 +164,9 @@ describe("CLI", () => {
assertEquals(
stdout,
dedent`
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
πŸ“¦ @conventional-commits/parser 0.3.0 β†’ 0.4.1
πŸ“¦ @luca/flag 1.0.0 β†’ 1.0.1
πŸ“¦ deno.land/std 0.222.0 β†’ 0.224.0
`,
);
});
Expand Down
4 changes: 2 additions & 2 deletions cli/src/updates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function print(update: Update) {
: lock;

if (versions) {
output += yellow(` ${versions.from} β†’ ${versions.to}`);
output += yellow(` ${versions.from} β†’ ${versions.to}`);
}

const ranges = constraint && !SemVer.tryParse(constraint.to)
Expand All @@ -23,7 +23,7 @@ export function print(update: Update) {
if (ranges) {
output += " ";
if (versions) output += cyan("(");
output += cyan(`${ranges.from} β†’ ${ranges.to}`);
output += cyan(`${ranges.from} β†’ ${ranges.to}`);
if (versions) output += cyan(")");
}

Expand Down

0 comments on commit c555d6a

Please sign in to comment.