@@ -29,7 +29,6 @@ const {
2929} = require ( '../../' )
3030
3131suite ( 'integration: Utils.LicenseUtility.LicenseEvidenceGatherer' , ( ) => {
32-
3332 test ( 'no path -> throws' , ( ) => {
3433 const { fs } = memfs ( { '/' : { } } )
3534 const leg = new LicenseEvidenceGatherer ( { fs } )
@@ -136,88 +135,87 @@ suite('integration: Utils.LicenseUtility.LicenseEvidenceGatherer', () => {
136135 }
137136 assert . deepEqual ( found . sort ( orderByFilePath ) , [
138137 {
139- ' filePath' : '/LICENSE' ,
140- ' file' : 'LICENSE' ,
141- ' text' : new Attachment (
138+ filePath : '/LICENSE' ,
139+ file : 'LICENSE' ,
140+ text : new Attachment (
142141 'TElDRU5TRSBmaWxlIGV4cGVjdGVk' , {
143- ' contentType' : 'text/plain' ,
144- ' encoding' : 'base64'
142+ contentType : 'text/plain' ,
143+ encoding : AttachmentEncoding . Base64
145144 } )
146145 } ,
147146 {
148- ' filePath' : '/LICENCE' ,
149- ' file' : 'LICENCE' ,
150- ' text' : new Attachment (
147+ filePath : '/LICENCE' ,
148+ file : 'LICENCE' ,
149+ text : new Attachment (
151150 'TElDRU5DRSBmaWxlIGV4cGVjdGVk' , {
152- ' contentType' : 'text/plain' ,
153- ' encoding' : 'base64'
154- } )
151+ contentType : 'text/plain' ,
152+ encoding : AttachmentEncoding . Base64
153+ } )
155154 } ,
156155 {
157- ' filePath' : '/UNLICENCE' ,
158- ' file' : 'UNLICENCE' ,
159- ' text' : new Attachment (
156+ filePath : '/UNLICENCE' ,
157+ file : 'UNLICENCE' ,
158+ text : new Attachment (
160159 'VU5MSUNFTkNFIGZpbGUgZXhwZWN0ZWQ=' , {
161- ' contentType' : 'text/plain' ,
162- ' encoding' : 'base64'
160+ contentType : 'text/plain' ,
161+ encoding : AttachmentEncoding . Base64
163162 } )
164163 } ,
165164 {
166- ' filePath' : '/UNLICENSE' ,
167- ' file' : 'UNLICENSE' ,
168- ' text' : new Attachment (
165+ filePath : '/UNLICENSE' ,
166+ file : 'UNLICENSE' ,
167+ text : new Attachment (
169168 'VU5MSUNFTlNFIGZpbGUgZXhwZWN0ZWQ=' , {
170- ' contentType' : 'text/plain' ,
171- ' encoding' : 'base64'
169+ contentType : 'text/plain' ,
170+ encoding : AttachmentEncoding . Base64
172171 } )
173172 } ,
174173 {
175- ' filePath' : '/NOTICE' ,
176- ' file' : 'NOTICE' ,
177- ' text' : new Attachment (
174+ filePath : '/NOTICE' ,
175+ file : 'NOTICE' ,
176+ text : new Attachment (
178177 'Tk9USUNFIGZpbGUgZXhwZWN0ZWQ=' , {
179- ' contentType' : 'text/plain' ,
180- ' encoding' : 'base64'
178+ contentType : 'text/plain' ,
179+ encoding : AttachmentEncoding . Base64
181180 } )
182181 } ,
183182 {
184- ' filePath' : '/MIT.license' ,
185- ' file' : 'MIT.license' ,
186- ' text' : new Attachment (
187- 'TUlULmxpY2Vuc2UgZmlsZSBleHBlY3RlZA==' , {
188- ' contentType' : 'text/plain' ,
189- ' encoding' : 'base64'
183+ filePath : '/MIT.license' ,
184+ file : 'MIT.license' ,
185+ text : new Attachment (
186+ 'TUlULmxpY2Vuc2UgZmlsZSBleHBlY3RlZA==' , {
187+ contentType : 'text/plain' ,
188+ encoding : AttachmentEncoding . Base64
190189 } )
191190 } ,
192191 {
193- ' filePath' : '/MIT.licence' ,
194- ' file' : 'MIT.licence' ,
195- ' text' : new Attachment (
196- 'TUlULmxpY2VuY2UgZmlsZSBleHBlY3RlZA==' , {
197- ' contentType' : 'text/plain' ,
198- ' encoding' : 'base64'
199- } )
192+ filePath : '/MIT.licence' ,
193+ file : 'MIT.licence' ,
194+ text : new Attachment (
195+ 'TUlULmxpY2VuY2UgZmlsZSBleHBlY3RlZA==' , {
196+ contentType : 'text/plain' ,
197+ encoding : AttachmentEncoding . Base64
198+ } )
200199 } ,
201200 {
202- ' filePath' : '/license.mit' ,
203- ' file' : 'license.mit' ,
204- ' text' : new Attachment (
201+ filePath : '/license.mit' ,
202+ file : 'license.mit' ,
203+ text : new Attachment (
205204 'bGljZW5zZS5taXQgZmlsZSBleHBlY3RlZA==' , {
206- ' contentType' : 'text/plain' ,
207- ' encoding' : 'base64'
208- } )
205+ contentType : 'text/plain' ,
206+ encoding : AttachmentEncoding . Base64
207+ } )
209208 } ,
210209 {
211- ' filePath' : '/license.txt' ,
212- ' file' : 'license.txt' ,
213- ' text' : new Attachment (
210+ filePath : '/license.txt' ,
211+ file : 'license.txt' ,
212+ text : new Attachment (
214213 'bGljZW5zZS50eHQgZmlsZSBleHBlY3RlZA==' , {
215- ' contentType' : 'text/plain' ,
216- ' encoding' : 'base64'
217- } )
214+ contentType : 'text/plain' ,
215+ encoding : AttachmentEncoding . Base64
216+ } )
218217 }
219218 ] . sort ( orderByFilePath ) )
220219 assert . deepEqual ( errors , [ ] )
221220 } )
222-
223221} )
0 commit comments