Skip to content

Commit d5c8d0a

Browse files
committed
Add test for missing Accept header.
1 parent e2fcae4 commit d5c8d0a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/unit/resource-mapper-test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,15 @@ describe('ResourceMapper', () => {
9999
],
100100
new Error('Not acceptable'))
101101

102+
itMapsUrl.skip(mapper, 'an extensionless URL of an existing file, no choice given',
103+
{
104+
url: 'http://localhost/space/foo'
105+
},
106+
[
107+
`${rootPath}space/foo.txt`
108+
],
109+
{ path: `${rootPath}space/foo.txt` })
110+
102111
// Security cases
103112

104113
itMapsUrl(mapper, 'a URL with an unknown content type',

0 commit comments

Comments
 (0)