Skip to content

Commit

Permalink
add test to verify case-insensitive comparison for vscode extension
Browse files Browse the repository at this point in the history
  • Loading branch information
vraravam committed Feb 9, 2024
1 parent dccd67d commit af668bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/bundle/commands/cleanup_command_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af668bc

Please sign in to comment.