@@ -286,6 +286,18 @@ describe('ResourceMapper', () => {
286286 contentType : 'application/octet-stream'
287287 } )
288288
289+ itMapsUrl ( mapper , 'a URL of that has an accompanying acl file, but no actual file' ,
290+ {
291+ url : 'http://localhost/space/'
292+ } ,
293+ [
294+ `${ rootPath } space/index.acl`
295+ ] ,
296+ {
297+ path : `${ rootPath } space/` ,
298+ contentType : 'application/octet-stream'
299+ } )
300+
289301 itMapsUrl ( mapper , 'a URL ending with a slash to an index file for text/html when index.html not is available' ,
290302 {
291303 url : 'http://localhost/space/' ,
@@ -297,6 +309,20 @@ describe('ResourceMapper', () => {
297309 contentType : 'text/html'
298310 } )
299311
312+ itMapsUrl ( mapper , 'a URL of that has an accompanying meta file, but no actual file' ,
313+ {
314+ url : 'http://localhost/space/' ,
315+ contentType : 'text/html' ,
316+ createIfNotExists : true
317+ } ,
318+ [
319+ `${ rootPath } space/index.meta`
320+ ] ,
321+ {
322+ path : `${ rootPath } space/index.html` ,
323+ contentType : 'text/html'
324+ } )
325+
300326 itMapsUrl ( mapper , 'a URL ending with a slash to a folder when index is skipped' ,
301327 {
302328 url : 'http://localhost/space/' ,
0 commit comments