@@ -19,24 +19,6 @@ test("Parses CLI output", async () => {
19
19
expect ( manifests ?. length == 2 ) ;
20
20
} ) ;
21
21
22
- describe ( "ComponentDetection.makePackageUrl" , ( ) => {
23
- test ( "returns an empty string when packageUrlJson is null" , ( ) => {
24
- const packageUrl = ComponentDetection . makePackageUrl ( null ) ;
25
- expect ( packageUrl ) . toBe ( "" ) ;
26
- } ) ;
27
- test ( "returns an empty string for null packageUrlJson properties" , ( ) => {
28
- const packageUrl = ComponentDetection . makePackageUrl ( {
29
- Scheme : null ,
30
- Type : null ,
31
- Namespace : null ,
32
- Name : null ,
33
- Version : null ,
34
- Qualifiers : null
35
- } ) ;
36
- expect ( packageUrl ) . toBe ( "" ) ;
37
- } ) ;
38
- } ) ;
39
-
40
22
describe ( "ComponentDetection.makePackageUrl" , ( ) => {
41
23
test ( "returns a valid package url from saturated object" , ( ) => {
42
24
const packageUrl = ComponentDetection . makePackageUrl ( {
@@ -68,4 +50,21 @@ describe("ComponentDetection.makePackageUrl", () => {
68
50
"pkg:npm/github/[email protected] "
69
51
) ;
70
52
} ) ;
53
+
54
+ test ( "returns an empty string when packageUrlJson is null" , ( ) => {
55
+ const packageUrl = ComponentDetection . makePackageUrl ( null ) ;
56
+ expect ( packageUrl ) . toBe ( "" ) ;
57
+ } ) ;
58
+
59
+ test ( "returns an empty string for null packageUrlJson properties" , ( ) => {
60
+ const packageUrl = ComponentDetection . makePackageUrl ( {
61
+ Scheme : null ,
62
+ Type : null ,
63
+ Namespace : null ,
64
+ Name : null ,
65
+ Version : null ,
66
+ Qualifiers : null
67
+ } ) ;
68
+ expect ( packageUrl ) . toBe ( "" ) ;
69
+ } ) ;
71
70
} ) ;
0 commit comments