Skip to content

Commit

Permalink
Test that Request#isMatch accepts any order of query strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Jul 3, 2018
1 parent 104fb10 commit c1473a2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/request-test.js
Expand Up @@ -31,5 +31,17 @@ describe('Request unit tests', function () {
headers: {}
}).should.equal(false);
});

it('should accept any order of query strings', function () {
var request = new Request(new Object(), {
method: 'GET',
url: '/?foo=bar&bar=foo'
});

request.isMatch({
method: 'GET',
url: '/?bar=foo&foo=bar'
}).should.equal(true);
});
});
});

0 comments on commit c1473a2

Please sign in to comment.