summaryrefslogtreecommitdiff
path: root/spec/integration/cli
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-04 14:34:48 -0600
committermo khan <mo.khan@gmail.com>2020-04-04 14:34:48 -0600
commitfead15804820bc426fa34633bfde9a318c1e5025 (patch)
treefca4c51a927a999344c3f92dec1dfe0b69878dc6 /spec/integration/cli
parent82d65d41e67b855fffdf45210245161c32575c16 (diff)
Add acceptance test for yarn lock file parser
Diffstat (limited to 'spec/integration/cli')
-rw-r--r--spec/integration/cli/scan_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/integration/cli/scan_spec.rb b/spec/integration/cli/scan_spec.rb
index e00971b..796c185 100644
--- a/spec/integration/cli/scan_spec.rb
+++ b/spec/integration/cli/scan_spec.rb
@@ -81,4 +81,9 @@ RSpec.describe '`spandx scan` command', type: :cli do
OUT
expect(output).to eq(expected_output)
end
+
+ it 'executes `spandx scan yarnfile.lock`' do
+ output = `spandx scan #{fixture_file('js/yarn.lock')}`
+ expect(output).to eq(fixture_file_content('js/yarn.lock.expected'))
+ end
end