Skip to content

Commit

Permalink
tests: add test for media type parameter order
Browse files Browse the repository at this point in the history
closes #39
  • Loading branch information
ethanresnick authored and dougwilson committed May 13, 2015
1 parent cbb717b commit bd3e873
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/mediaType.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@ describe('negotiator.mediaTypes(array)', function () {
['text/html;level=1;foo=bar'],
['text/html;level=1;foo=bar']
))

it('should accept text/html;foo=bar;level=1', mediaTypesNegotiated(
['text/html;foo=bar;level=1'],
['text/html;foo=bar;level=1']
))
})

whenAccept('text/html;level=1;foo="bar"', function () {
Expand Down

0 comments on commit bd3e873

Please sign in to comment.