diff --git a/cli/main_test.ts b/cli/main_test.ts index 00bfc54b..ff048799 100644 --- a/cli/main_test.ts +++ b/cli/main_test.ts @@ -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( @@ -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( @@ -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( @@ -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 `, ); }); @@ -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 `, ); }); @@ -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 `, ); }); @@ -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 `, ); }); @@ -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 `, ); }); @@ -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 `, ); }); @@ -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 `, ); }); diff --git a/cli/src/updates.ts b/cli/src/updates.ts index 20fdc584..de964274 100644 --- a/cli/src/updates.ts +++ b/cli/src/updates.ts @@ -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) @@ -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(")"); }