brew style --fix
This commit is contained in:
parent
ad188c9a4b
commit
5aa24832df
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user