Skip to content

Commit 6f6f03a

Browse files
bourgeoaRubenVerborgh
authored andcommitted
Add failing test for .mp3 extension.
1 parent 97966cf commit 6f6f03a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/unit/resource-mapper-test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,17 @@ describe('ResourceMapper', () => {
119119
contentType: 'text/n3'
120120
})
121121

122+
itMapsUrl(mapper, 'a URL with a file extension having more than one possible content type',
123+
{
124+
url: 'http://localhost/space/foo.mp3',
125+
contentType: 'audio/mp3',
126+
createIfNotExists: true
127+
},
128+
{
129+
path: `${rootPath}space/foo.mp3`,
130+
contentType: 'audio/mp3'
131+
})
132+
122133
// GET/HEAD/POST/DELETE/PATCH base cases
123134

124135
itMapsUrl(mapper, 'a URL of a non-existing file',

0 commit comments

Comments
 (0)