Closed arajkumar closed 5 years ago
Can one of the admins verify this patch?
@arajkumar can even enable the test to run in cico scripts and have one commit with semantic versioning.
@invincibleJai , Thanks for your review comments.
can even enable the test to run in cico scripts
Updated the cico script to run the unit test. How to verify this on CI?
and have one commit with semantic versioning
squashed the commit manually, but we can do that while we are merging this PR to master.
[test]
[test]
It fixes https://github.com/fabric8-analytics/fabric8-analytics-vscode-extension/issues/315.
Root cause:
Empty lines(with and without #) are also counted as dependencies.
Solution:
If parsed package name is empty, ignore it.
Cleanup:
I also did some refactoring to use JS map/reduce for a nice looking code :)
Testing:
Chai, mocha based unit tests has been added newly. Also added nyc based code coverage and modified code has been covered 100%.
Follow the below steps to test this change along with fabric8-analytics-vscode-extension,