From af668bc72acb39fe93bf65eb9c464a6449745ed6 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Fri, 9 Feb 2024 18:45:17 +0530 Subject: [PATCH] add test to verify case-insensitive comparison for vscode extension --- spec/bundle/commands/cleanup_command_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/bundle/commands/cleanup_command_spec.rb b/spec/bundle/commands/cleanup_command_spec.rb index c48c6037c..721d05210 100644 --- a/spec/bundle/commands/cleanup_command_spec.rb +++ b/spec/bundle/commands/cleanup_command_spec.rb @@ -76,6 +76,11 @@ allow(Bundle::VscodeExtensionDumper).to receive(:extensions).and_return(%w[z]) expect(described_class.vscode_extensions_to_uninstall).to eql(%w[z]) end + + it "computes which VSCode extensions to uninstall irrespective of case of the extension name" do + allow(Bundle::VscodeExtensionDumper).to receive(:extensions).and_return(%w[z Ab VsCodeExtension1]) + expect(described_class.vscode_extensions_to_uninstall).to eql(%w[z ab]) + end end context "when there are no formulae to uninstall and no taps to untap" do