@@ -60,13 +60,10 @@ suite('integration: Utils.LicenseUtility.LicenseEvidenceGatherer', () => {
6060 } )
6161
6262 test ( 'ignore LICENSE folder' , ( ) => {
63- // see https://reuse-standard.org/
64- const { fs } = memfs ( {
65- LICENSE : {
63+ const { fs } = memfs ( { LICENSE : {
6664 'MIT.txt' : 'MIT License text here...' ,
6765 'GPL-3.0-or-later.txt' : 'GPL-3.0-or-later License text here...'
68- }
69- } )
66+ } } )
7067 const leg = new LicenseEvidenceGatherer ( { fs } )
7168 const found = Array . from (
7269 leg . getFileAttachments ( '/' ) )
@@ -75,12 +72,10 @@ suite('integration: Utils.LicenseUtility.LicenseEvidenceGatherer', () => {
7572
7673 test ( 'ignore LICENSES folder' , ( ) => {
7774 // see https://reuse-standard.org/
78- const { fs } = memfs ( {
79- LICENSES : {
75+ const { fs } = memfs ( { LICENSES : {
8076 'MIT.txt' : 'MIT License text here...' ,
8177 'GPL-3.0-or-later.txt' : 'GPL-3.0-or-later License text here...'
82- }
83- } )
78+ } } )
8479 const leg = new LicenseEvidenceGatherer ( { fs } )
8580 const found = Array . from (
8681 leg . getFileAttachments ( '/' ) )
@@ -89,9 +84,7 @@ suite('integration: Utils.LicenseUtility.LicenseEvidenceGatherer', () => {
8984
9085 test ( 'reports unreadable files' , ( ) => {
9186 // see https://reuse-standard.org/
92- const { fs } = memfs ( {
93- '/LICENSE' : 'license text here...' ,
94- } )
87+ const { fs } = memfs ( { '/LICENSE' : 'license text here...' } )
9588 const expectedError = new Error (
9689 `skipped license file ${ sep } LICENSE` ,
9790 { cause : new Error ( 'Custom read error: Access denied!' ) } )
@@ -134,7 +127,6 @@ suite('integration: Utils.LicenseUtility.LicenseEvidenceGatherer', () => {
134127 /* eslint-enable jsdoc/valid-types */
135128
136129 test ( 'finds licenses as expected' , ( ) => {
137- // see https://reuse-standard.org/
138130 const { fs } = memfs ( { '/' : mockedLicenses } )
139131 const leg = new LicenseEvidenceGatherer ( { fs } )
140132 const errors = [ ]
0 commit comments