summaryrefslogtreecommitdiff
path: root/spec/integration/js
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-05-25 11:01:03 -0600
committermo khan <mo.khan@gmail.com>2020-05-26 19:33:44 -0600
commit80fa34dd2bd72af88efcb85844302d04450a0e1e (patch)
tree2a5ba8dfc9bdb61c58633373be122ae2f83df1e7 /spec/integration/js
parentbff873a938de126d2b79e799df325f3d5c31295b (diff)
Scan Conan projects
* Scan the conan examples project * Split licenses by comma * Add integration test job for c projects * Add package_manager, version and path to v2.1 report * Detect collisions between names from different package managers * Add CHANGELOG entry * Update README to indicate Conan support * Print timestamps in install script
Diffstat (limited to 'spec/integration/js')
-rw-r--r--spec/integration/js/bower_spec.rb6
-rw-r--r--spec/integration/js/npm_spec.rb10
-rw-r--r--spec/integration/js/yarn_spec.rb4
3 files changed, 10 insertions, 10 deletions
diff --git a/spec/integration/js/bower_spec.rb b/spec/integration/js/bower_spec.rb
index e6d9012..5a4f72d 100644
--- a/spec/integration/js/bower_spec.rb
+++ b/spec/integration/js/bower_spec.rb
@@ -10,7 +10,7 @@ RSpec.describe "bower" do
runner.add_file('bower.json', fixture_file_content('js/bower/bower.json'))
end
- specify { expect(subject).to match_schema(version: '2.0') }
+ specify { expect(subject).to match_schema }
specify { expect(subject.dependency_names).to match_array(['cli', 'ev-emitter', 'example-project', 'fizzy-ui-utils', 'get-size', 'jquery', 'masonry-layout', 'matches-selector', 'outlayer', 'stimulus.umd']) }
specify { expect(subject.licenses_for('cli')).to match_array(['Apache-2.0', 'BSD-3-Clause', 'ISC', 'MIT']) }
specify { expect(subject.licenses_for('ev-emitter')).to match_array(['MIT']) }
@@ -41,7 +41,7 @@ RSpec.describe "bower" do
end
end
- specify { expect(subject).to match_schema(version: '2.0') }
+ specify { expect(subject).to match_schema }
specify { expect(subject.dependency_names).to match_array(%w[js-bower lodash]) }
specify { expect(subject.licenses_for('js-bower')).to match_array(['ISC']) }
specify { expect(subject.licenses_for('lodash')).to match_array(['MIT']) }
@@ -59,7 +59,7 @@ RSpec.describe "bower" do
runner.clone(git_repo)
end
- specify { expect(subject).to match_schema(version: '2.0') }
+ specify { expect(subject).to match_schema }
specify { expect(subject.dependency_names).not_to be_empty }
end
end
diff --git a/spec/integration/js/npm_spec.rb b/spec/integration/js/npm_spec.rb
index 0658df6..13cbd15 100644
--- a/spec/integration/js/npm_spec.rb
+++ b/spec/integration/js/npm_spec.rb
@@ -15,7 +15,7 @@ RSpec.describe "npm" do
end
end
- specify { expect(subject).to match_schema(version: '2.0') }
+ specify { expect(subject).to match_schema }
specify { expect(subject.dependency_names).to match_array(['example']) }
end
@@ -26,7 +26,7 @@ RSpec.describe "npm" do
runner.mount(dir: fixture_file('js/single-declared-dependency'))
end
- specify { expect(subject).to match_schema(version: '2.0') }
+ specify { expect(subject).to match_schema }
specify do
[
@@ -173,7 +173,7 @@ RSpec.describe "npm" do
runner.add_file('package.json', fixture_file_content('js/single-declared-dependency/package.json'))
end
- specify { expect(subject).to match_schema(version: '2.0') }
+ specify { expect(subject).to match_schema }
specify do
[
@@ -328,7 +328,7 @@ RSpec.describe "npm" do
end
end
- specify { expect(subject).to match_schema(version: '2.0') }
+ specify { expect(subject).to match_schema }
[
["2md", "0.0.4", ["Apache-2.0"]],
@@ -497,7 +497,7 @@ RSpec.describe "npm" do
end
end
- specify { expect(subject).to match_schema(version: '2.0') }
+ specify { expect(subject).to match_schema }
specify { expect(subject.dependency_names).to match_array(%w[js-npm lodash]) }
specify { expect(subject.licenses_for('js-npm')).to match_array(['MIT']) }
specify { expect(subject.licenses_for('lodash')).to match_array(['MIT']) }
diff --git a/spec/integration/js/yarn_spec.rb b/spec/integration/js/yarn_spec.rb
index 1e0eb52..a5a9695 100644
--- a/spec/integration/js/yarn_spec.rb
+++ b/spec/integration/js/yarn_spec.rb
@@ -11,7 +11,7 @@ RSpec.describe "yarn" do
runner.add_file("yarn.lock", fixture_file_content('js/yarn/single-declared-dependency/yarn.lock'))
end
- specify { expect(subject).to match_schema(version: '2.0') }
+ specify { expect(subject).to match_schema }
specify do
[
@@ -182,7 +182,7 @@ lodash@4.17.10:
end
end
- specify { expect(subject).to match_schema(version: '2.0') }
+ specify { expect(subject).to match_schema }
specify { expect(subject.dependency_names).to match_array(%w[lodash]) }
specify { expect(subject.licenses_for('lodash')).to match_array(['MIT']) }
end