brew style --fix

This commit is contained in:
Issy Long 2023-04-11 21:12:13 +01:00
parent ad188c9a4b
commit 5aa24832df
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4
2 changed files with 3 additions and 5 deletions

View File

@ -102,7 +102,7 @@ module Debrew
raise(exception) if !active? || !debugged_exceptions.add?(exception) || !mu_try_lock
begin
puts exception.backtrace.first.to_s
puts exception.backtrace.first
puts Formatter.error(exception, label: exception.class.name)
loop do

View File

@ -45,14 +45,12 @@ describe Language::Node do
it "raises error with non zero exitstatus" do
allow(Utils).to receive(:popen_read).with(*npm_pack_cmd).and_return(`false`)
expect { described_class.std_npm_install_args(npm_install_arg) }.to \
raise_error("npm failed to pack #{Dir.pwd}")
expect { described_class.std_npm_install_args(npm_install_arg) }.to raise_error("npm failed to pack #{Dir.pwd}")
end
it "raises error with empty npm pack output" do
allow(Utils).to receive(:popen_read).with(*npm_pack_cmd).and_return(`true`)
expect { described_class.std_npm_install_args(npm_install_arg) }.to \
raise_error("npm failed to pack #{Dir.pwd}")
expect { described_class.std_npm_install_args(npm_install_arg) }.to raise_error("npm failed to pack #{Dir.pwd}")
end
it "does not raise error with a zero exitstatus" do