-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
npmaudit:chore - improve tests and code cleaning (#902)
This commit add some new asserts on successful parsing npm results to verify that all fields of Vulnerability was filled. Note that the test cases from `TestParseOutputNpm` was moved to `TestNpmAuditParseOutput` to centralize all tests as it is done in the other tests of the other formatters. Some code organization was also made, and the entities packages was removed and the npm schema output was moved to npmaudit package. Updates #718 Signed-off-by: Matheus Alcantara <[email protected]>
- Loading branch information
1 parent
4c1fffb
commit 1e7268d
Showing
8 changed files
with
190 additions
and
235 deletions.
There are no files selected for viewing
19 changes: 0 additions & 19 deletions
19
internal/services/formatters/javascript/npmaudit/entities/finding.go
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
internal/services/formatters/javascript/npmaudit/entities/metadata.go
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
internal/services/formatters/javascript/npmaudit/entities/output.go
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
internal/services/formatters/javascript/npmaudit/entities/vulnerabilities.go
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.