We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b81218 commit 4e2ca3cCopy full SHA for 4e2ca3c
modules/__tests__/URLUtils-test.js
@@ -260,6 +260,12 @@ describe('formatPattern', function () {
260
expect(formatPattern(pattern, { id: 'alt.black.helicopter' })).toEqual('comments/alt.black.helicopter/edit');
261
});
262
263
+
264
+ describe('and some params contain special characters', function () {
265
+ it('returns the correct path', function () {
266
+ expect(formatPattern(pattern, { id: '?not=confused&with=query#string' })).toEqual('comments/%3Fnot%3Dconfused%26with%3Dquery%23string/edit');
267
+ });
268
269
270
271
describe('when a pattern has one splat', function () {
0 commit comments